Home · All Classes · Modules

QXmlParseException Class Reference
[QtXml module]

The QXmlParseException class is used to report errors with the QXmlErrorHandler interface. More...

Methods


Detailed Description

The QXmlParseException class is used to report errors with the QXmlErrorHandler interface.

The XML subsystem constructs an instance of this class when it detects an error. You can retrieve the place where the error occurred using systemId(), publicId(), lineNumber() and columnNumber(), along with the error message().

See also QXmlErrorHandler and QXmlReader.


Method Documentation

QXmlParseException.__init__ (self, QString name = QString(), int c = -1, int l = -1, QString p = QString(), QString s = QString())

Constructs a parse exception with the error string name for column c and line l for the public identifier p and the system identifier s.

int QXmlParseException.columnNumber (self)

Returns the column number where the error occurred.

int QXmlParseException.lineNumber (self)

Returns the line number where the error occurred.

QString QXmlParseException.message (self)

Returns the error message.

QString QXmlParseException.publicId (self)

Returns the public identifier where the error occurred.

QString QXmlParseException.systemId (self)

Returns the system identifier where the error occurred.


PyQt 4.0.1 for X11Copyright © Riverbank Computing Ltd and Trolltech AS 2006Qt 4.1.4