Qt 4.8
|
The QXmlParseException class is used to report errors with the QXmlErrorHandler interface. More...
#include <qxml.h>
Public Functions | |
int | columnNumber () const |
Returns the column number where the error occurred. More... | |
int | lineNumber () const |
Returns the line number where the error occurred. More... | |
QString | message () const |
Returns the error message. More... | |
QString | publicId () const |
Returns the public identifier where the error occurred. More... | |
QXmlParseException (const QString &name=QString(), int c=-1, int l=-1, const QString &p=QString(), const QString &s=QString()) | |
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. More... | |
QXmlParseException (const QXmlParseException &other) | |
Creates a copy of other. More... | |
QString | systemId () const |
Returns the system identifier where the error occurred. More... | |
~QXmlParseException () | |
Destroys the QXmlParseException. More... | |
Properties | |
QScopedPointer< QXmlParseExceptionPrivate > | d |
The QXmlParseException class is used to report errors with the QXmlErrorHandler interface.
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.
|
explicit |
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.
Definition at line 572 of file qxml.cpp.
QXmlParseException::QXmlParseException | ( | const QXmlParseException & | other | ) |
QXmlParseException::~QXmlParseException | ( | ) |
int QXmlParseException::columnNumber | ( | ) | const |
Returns the column number where the error occurred.
Definition at line 609 of file qxml.cpp.
Referenced by QDomHandler::fatalError().
int QXmlParseException::lineNumber | ( | ) | const |
Returns the line number where the error occurred.
Definition at line 616 of file qxml.cpp.
Referenced by QDomHandler::fatalError().
QString QXmlParseException::message | ( | ) | const |
Returns the error message.
Definition at line 602 of file qxml.cpp.
Referenced by QDomHandler::fatalError().
QString QXmlParseException::publicId | ( | ) | const |
QString QXmlParseException::systemId | ( | ) | const |
|
private |
Definition at line 207 of file qxml.h.
Referenced by columnNumber(), QXmlInputSource::data(), QXmlInputSource::fetchData(), QXmlInputSource::fromRawData(), QXmlInputSource::init(), lineNumber(), message(), QXmlInputSource::next(), QXmlNamespaceSupport::popContext(), QXmlNamespaceSupport::prefix(), QXmlNamespaceSupport::prefixes(), QXmlNamespaceSupport::processName(), publicId(), QXmlNamespaceSupport::pushContext(), QXmlInputSource::QXmlInputSource(), QXmlNamespaceSupport::QXmlNamespaceSupport(), QXmlNamespaceSupport::reset(), QXmlInputSource::reset(), QXmlInputSource::setData(), QXmlNamespaceSupport::setPrefix(), systemId(), QXmlNamespaceSupport::uri(), QXmlInputSource::~QXmlInputSource(), and QXmlNamespaceSupport::~QXmlNamespaceSupport().