Public Member Functions | Private Attributes | List of all members
QXmlParseException Class Reference

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

#include <qxml.h>

Public Member Functions

 QXmlParseException (const QString &name="", int c=-1, int l=-1, const QString &p="", const QString &s="")
 
int columnNumber () const
 
int lineNumber () const
 
QString publicId () const
 
QString systemId () const
 
QString message () const
 

Private Attributes

QString msg
 
int column
 
int line
 
QString pub
 
QString sys
 

Detailed Description

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

XML

See also
QXmlErrorHandler

Definition at line 185 of file qxml.h.

Constructor & Destructor Documentation

QXmlParseException::QXmlParseException ( const QString name = "",
int  c = -1,
int  l = -1,
const QString p = "",
const QString s = "" 
)
inline

Constructs a parse exception with the error string name in the column c and line l for the public identifier p and the system identifier s.

Definition at line 188 of file qxml.h.

189  : msg( name ), column( c ), line( l ), pub( p ), sys( s )
190  { }
static QStrList * l
Definition: config.cpp:1044
QString sys
Definition: qxml.h:203
QString msg
Definition: qxml.h:199
QString pub
Definition: qxml.h:202

Member Function Documentation

int QXmlParseException::columnNumber ( ) const

Returns the column number the error occured.

Definition at line 231 of file qxml.cpp.

232 {
233  return column;
234 }
int QXmlParseException::lineNumber ( ) const

Returns the line number the error occured.

Definition at line 238 of file qxml.cpp.

239 {
240  return line;
241 }
QString QXmlParseException::message ( ) const

Returns the error message.

Definition at line 224 of file qxml.cpp.

225 {
226  return msg;
227 }
QString msg
Definition: qxml.h:199
QString QXmlParseException::publicId ( ) const

Returns the public identifier the error occured.

Definition at line 245 of file qxml.cpp.

246 {
247  return pub;
248 }
QString pub
Definition: qxml.h:202
QString QXmlParseException::systemId ( ) const

Returns the system identifier the error occured.

Definition at line 252 of file qxml.cpp.

253 {
254  return sys;
255 }
QString sys
Definition: qxml.h:203

Member Data Documentation

int QXmlParseException::column
private

Definition at line 200 of file qxml.h.

int QXmlParseException::line
private

Definition at line 201 of file qxml.h.

QString QXmlParseException::msg
private

Definition at line 199 of file qxml.h.

QString QXmlParseException::pub
private

Definition at line 202 of file qxml.h.

QString QXmlParseException::sys
private

Definition at line 203 of file qxml.h.


The documentation for this class was generated from the following files: