Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

qgxml::SAXParseException Class Reference
[XML SAX Module]

#include <qgarlib/sax/SAXParseException.H>

Inheritance diagram for qgxml::SAXParseException:

qgxml::SAXException List of all members.

Detailed Description

Encapsulate an XML parse error or warning.

This exception may include information for locating the error in the original XML document, as if it came from a Locator object.

This class is an adaptation for C++ of the interface of the same name implemented in the Java SAX API(http://www.saxproject.org).

Author:
Jan Rendek (Adaptation)
Date:
March 11, 2003 15:34
Since:
Qgar 2.1.1

Definition at line 68 of file SAXParseException.H.

Public Member Functions

Constructors
 SAXParseException ()
 Default constructor.
 SAXParseException (const std::string &message, const Locator &locator)
 Create a new SAXParseException from a message and a Locator.
 SAXParseException (const std::string &message, const std::string &publicId, const std::string &systemId, int lineNumber, int columnNumber)
 Create a new SAXParseException.
Destructor
virtual ~SAXParseException () throw ()
 Destructor.
Access
std::string getPublicId () const
 Get the public identifier of the entity where the exception occurred.
std::string getSystemId () const
 Get the system identifier of the entity where the exception occurred.
int getLineNumber () const
 The line number of the end of the text where the exception occurred.
int getColumnNumber () const
 The column number of the end of the text where the exception occurred.
Access
virtual const char * getMessage ()
 Return a detail message for this exception.
virtual const char * getMessage () const
 Return a detail message for this exception.

Protected Attributes

std::string _publicId
 The public identifier of the entity where the exception occurred.
std::string _systemId
 The system identifier of the entity where the exception occurred.
int _lineNumber
int _columnNumber


Constructor & Destructor Documentation

qgxml::SAXParseException::SAXParseException  )  [inline]
 

Default constructor.

Definition at line 82 of file SAXParseException.H.

qgxml::SAXParseException::SAXParseException const std::string &  message,
const Locator locator
[inline]
 

Create a new SAXParseException from a message and a Locator.

Parameters:
message The error or warning message.
locator The locator object for the error or warning.

Definition at line 92 of file SAXParseException.H.

qgxml::SAXParseException::SAXParseException const std::string &  message,
const std::string &  publicId,
const std::string &  systemId,
int  lineNumber,
int  columnNumber
[inline]
 

Create a new SAXParseException.

Parameters:
message The error or warning message.
publicId The public identifier of the entity that generated the error or warning.
systemId The system identifier of the entity that generated the error or warning.
lineNumber The line number of the end of the text that caused the error or warning.
columnNumber The column number of the end of the text that cause the error or warning.

Definition at line 114 of file SAXParseException.H.

virtual qgxml::SAXParseException::~SAXParseException  )  throw () [inline, virtual]
 

Destructor.

Definition at line 135 of file SAXParseException.H.


Member Function Documentation

int qgxml::SAXParseException::getColumnNumber  )  const [inline]
 

The column number of the end of the text where the exception occurred.

Returns:
An integer representing the column number, or -1 if none is available.

Definition at line 186 of file SAXParseException.H.

References _columnNumber.

int qgxml::SAXParseException::getLineNumber  )  const [inline]
 

The line number of the end of the text where the exception occurred.

Returns:
An integer representing the line number, or -1 if none is available.

Definition at line 174 of file SAXParseException.H.

References _lineNumber.

virtual const char* qgxml::SAXException::getMessage  )  const [inline, virtual, inherited]
 

Return a detail message for this exception.

Returns:
The error or warning message.

Definition at line 134 of file SAXException.H.

virtual const char* qgxml::SAXException::getMessage  )  [inline, virtual, inherited]
 

Return a detail message for this exception.

Returns:
The error or warning message.

Definition at line 124 of file SAXException.H.

Referenced by qgxml::XercesQgarContentHandlerAdaptor::characters(), qgxml::XercesQgarContentHandlerAdaptor::endDocument(), qgxml::XercesQgarContentHandlerAdaptor::endElement(), qgxml::XercesQgarContentHandlerAdaptor::endPrefixMapping(), qgar::QgarAppDescr::fatalError(), qgxml::XercesQgarContentHandlerAdaptor::ignorableWhitespace(), qgxml::XercesQgarDTDHandlerAdaptor::notationDecl(), qgxml::XercesQgarContentHandlerAdaptor::processingInstruction(), qgxml::XercesQgarContentHandlerAdaptor::skippedEntity(), qgxml::XercesQgarContentHandlerAdaptor::startDocument(), qgxml::XercesQgarContentHandlerAdaptor::startElement(), qgxml::XercesQgarContentHandlerAdaptor::startPrefixMapping(), and qgxml::XercesQgarDTDHandlerAdaptor::unparsedEntityDecl().

std::string qgxml::SAXParseException::getPublicId  )  const [inline]
 

Get the public identifier of the entity where the exception occurred.

Returns:
A string containing the public identifier, or an empty string if none is available.

Definition at line 150 of file SAXParseException.H.

References _publicId.

std::string qgxml::SAXParseException::getSystemId  )  const [inline]
 

Get the system identifier of the entity where the exception occurred.

Returns:
A string containing the system identifier, or an empty string if none is available.

Definition at line 162 of file SAXParseException.H.

References _systemId.


Member Data Documentation

int qgxml::SAXParseException::_columnNumber [protected]
 

The column number of the end of the text where the exception occurred.

Definition at line 212 of file SAXParseException.H.

Referenced by getColumnNumber().

int qgxml::SAXParseException::_lineNumber [protected]
 

The line number of the end of the text where the exception occurred.

Definition at line 206 of file SAXParseException.H.

Referenced by getLineNumber().

std::string qgxml::SAXParseException::_publicId [protected]
 

The public identifier of the entity where the exception occurred.

Definition at line 197 of file SAXParseException.H.

Referenced by getPublicId().

std::string qgxml::SAXParseException::_systemId [protected]
 

The system identifier of the entity where the exception occurred.

Definition at line 200 of file SAXParseException.H.

Referenced by getSystemId().


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