PySide.QtXml.QXmlParseException class is used to report errors with the PySide.QtXml.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 PySide.QtXml.QXmlParseException.systemId() , PySide.QtXml.QXmlParseException.publicId() , PySide.QtXml.QXmlParseException.lineNumber() and PySide.QtXml.QXmlParseException.columnNumber() , along with the error PySide.QtXml.QXmlParseException.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.
| 参数: |
|
|---|
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 .
Creates a copy of other .
| 返回类型: | PySide.QtCore.int |
|---|
Returns the column number where the error occurred.
| 返回类型: | PySide.QtCore.int |
|---|
Returns the line number where the error occurred.
| 返回类型: | unicode |
|---|
Returns the error message.
| 返回类型: | unicode |
|---|
Returns the public identifier where the error occurred.
| 返回类型: | unicode |
|---|
Returns the system identifier where the error occurred.