
We bake cookies in your browser for a better experience. Using this site means that you consent.Read More
TheQXmlParseException class is used to report errors with theQXmlErrorHandler interface.More...
| Header: | #include <QXmlParseException> |
Note: All functions in this class arereentrant.
| QXmlParseException(const QString & name = QString(), int c = -1, int l = -1, const QString & p = QString(), const QString & s = QString()) | |
| QXmlParseException(const QXmlParseException & other) | |
| ~QXmlParseException() | |
| int | columnNumber() const |
| int | lineNumber() const |
| QString | message() const |
| QString | publicId() const |
| QString | systemId() const |
TheQXmlParseException class is used to report errors with theQXmlErrorHandler interface.
The XML subsystem constructs an instance of this class when it detects an error. You can retrieve the place where the error occurred usingsystemId(),publicId(),lineNumber() andcolumnNumber(), along with the errormessage(). 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 alsoQXmlErrorHandler andQXmlReader.
Constructs a parse exception with the error stringname for columnc and linel for the public identifierp and the system identifiers.
Creates a copy ofother.
Destroys theQXmlParseException.
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.
© 2016 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 theGNU 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.