QXmlParseException 類用於報告錯誤采用 QXmlErrorHandler 接口。 更多...
| 頭: | #include <QXmlParseException> |
| qmake: | QT += xml |
該類已過時。 提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
注意: 此類的所有函數 可重入 .
| QXmlParseException (const QXmlParseException & other ) | |
| QXmlParseException (const QString & name = QString(), int c = -1, int l = -1, const QString & p = QString(), const QString & s = QString()) | |
| ~QXmlParseException () | |
| int | columnNumber () const |
| int | lineNumber () const |
| QString | message () const |
| QString | publicId () const |
| QString | systemId () const |
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.
另請參閱 QXmlErrorHandler and QXmlReader .
創建副本為 other .
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 .
Returns the column number where the error occurred.
Returns the line number where the error occurred.
Returns the error message.
Returns the public identifier where the error occurred.
Returns the system identifier where the error occurred.