Home · All Classes · All Functions · Overviews

QXmlParseException Class Reference
[
QtXml module]

The QXmlParseException class is used to report errors with the QXmlErrorHandler interface. More...

 #include <QXmlParseException>

This class is not part of the Qt GUI Framework Edition.

Note: All functions in this class are reentrant.


Public Functions

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

Detailed Description

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.

See also QXmlErrorHandler and QXmlReader.


Member Function Documentation

QXmlParseException::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.

QXmlParseException::QXmlParseException ( const QXmlParseException & other )

Creates a copy of other.

QXmlParseException::~QXmlParseException ()

Destroys the QXmlParseException.

int QXmlParseException::columnNumber () const

Returns the column number where the error occurred.

int QXmlParseException::lineNumber () const

Returns the line number where the error occurred.

QString QXmlParseException::message () const

Returns the error message.

QString QXmlParseException::publicId () const

Returns the public identifier where the error occurred.

QString QXmlParseException::systemId () const

Returns the system identifier where the error occurred.


Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt 4.6.0