The QXmlParseException class is used to report errors with the QXmlErrorHandler interface. More...
Header: | #include <QXmlParseException> |
CMake: | find_package(Qt6 COMPONENTS Core5Compat REQUIRED) target_link_libraries(mytarget PRIVATE Qt6::Core5Compat) |
qmake: | QT += core5compat |
Note: All functions in this class are reentrant.
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() and 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.
See also QXmlErrorHandler and QXmlReader.
Creates a copy of 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.
Destroys the 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.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/qxmlparseexception.html