QXmlParseException Class Reference

[ QtXml module]

QXmlParseException 类用于报告错误采用 QXmlErrorHandler 接口。 更多...

方法


详细描述

QXmlParseException 类用于报告错误采用 QXmlErrorHandler 接口。

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 () 和 columnNumber (), along with the error message (). The possible error messages are:

Note that, if you want to display these error messages to your application's users, they will be displayed in English unless they are explicitly translated.


方法文档编制

QXmlParseException.__init__ ( self , QString  name  = QString(), int  column  = -1, int  line  = -1, QString  publicId  = QString(), QString  systemId  = 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 .

QXmlParseException.__init__ ( self , QXmlParseException   other )

Creates a copy of other .

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.