QXmlParseException露
The
QXmlParseExceptionclass is used to report errors with theQXmlErrorHandlerinterface. More鈥

Synopsis露
Functions露
def
columnNumber()def
lineNumber()def
message()def
publicId()def
systemId()
Detailed Description露
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()andcolumnNumber(), along with the errormessage(). The possible error messages are:
鈥渘o error occurred鈥
鈥渆rror triggered by consumer鈥
鈥渦nexpected end of file鈥
鈥渕ore than one document type definition鈥
鈥渆rror occurred while parsing element鈥
鈥渢ag mismatch鈥
鈥渆rror occurred while parsing content鈥
鈥渦nexpected character鈥
鈥渋nvalid name for processing instruction鈥
鈥渧ersion expected while reading the XML declaration鈥
鈥渨rong value for standalone declaration鈥
鈥渆ncoding declaration or standalone declaration expected while reading the XML declaration鈥
鈥渟tandalone declaration expected while reading the XML declaration鈥
鈥渆rror occurred while parsing document type definition鈥
鈥渓etter is expected鈥
鈥渆rror occurred while parsing comment鈥
鈥渆rror occurred while parsing reference鈥
鈥渋nternal general entity reference not allowed in DTD鈥
鈥渆xternal parsed general entity reference not allowed in attribute value鈥
鈥渆xternal parsed general entity reference not allowed in DTD鈥
鈥渦nparsed entity reference n wrong context鈥
鈥渞ecursive entities鈥
鈥渆rror in the text declaration of an external entity鈥
Note that, if you want to display these error messages to your application鈥檚 users, they will be displayed in English unless they are explicitly translated.
See also
- class PySide2.QtXml.QXmlParseException([name=""[, c=-1[, l=-1[, p=""[, s=""]]]]])露
PySide2.QtXml.QXmlParseException(other)
- param name:
str
- param l:
int
- param p:
str
- param other:
- param s:
str
- param c:
int
Constructs a parse exception with the error string
namefor columncand linelfor the public identifierpand the system identifiers.Creates a copy of
other.
- PySide2.QtXml.QXmlParseException.columnNumber()露
- Return type:
int
Returns the column number where the error occurred.
- PySide2.QtXml.QXmlParseException.lineNumber()露
- Return type:
int
Returns the line number where the error occurred.
- PySide2.QtXml.QXmlParseException.message()露
- Return type:
str
Returns the error message.
- PySide2.QtXml.QXmlParseException.publicId()露
- Return type:
str
Returns the public identifier where the error occurred.
- PySide2.QtXml.QXmlParseException.systemId()露
- Return type:
str
Returns the system identifier where the error occurred.
漏 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.