classIBXMLCALL SAXParseException: public SAXException

Exception for basic warning and error information associated with a particular location in the XML data

Inheritance:

SAXParseException - SAXException


Public

[more] Constructors and destructor.
[more] SAXParseException interface.


Inherited from SAXException:

Public

SAXException interface.


Documentation

Exception for basic warning and error information associated with a particular location in the XML data.

A parser or an application may subclass this class to provide additional information. SAX handlers may throw this exception or any exception sub-classed from it.

If the application has to pass through other types of exception, those exceptions have to be wrapped in a SAXParseException or an exception derived from a SAXParseException.

o Constructors and destructor.

o SAXParseException(const ibxmlchar* message, const Locator& locator)
Construct a SAXParseException with a message and a location in the source XML document.

Note that this constructor may only be used inside a DocumentHandler as a Locator object is referenced.

Parameters:
message - A pointer to a string containing the message describing the exception.
locator - A reference to a Locator object with information about the current location in the XML document.

o SAXParseException(const char* message, const Locator& locator)
Construct a SAXParseException with a message and a location in the source XML document.

Note that this constructor may only be used inside a DocumentHandler as a Locator object is referenced.

Parameters:
message - A pointer to a string containing the message describing the exception.
locator - A reference to a Locator object with information about the current location in the XML document.

o SAXParseException(const ibxmlchar* message, const ibxmlchar* publicId, const ibxmlchar* systemId, int lineNumber, int columnNumber)
Construct a SAXParseException with a message and a location in the source XML document.

Parameters:
message - A pointer to a string containing the message describing the exception.
publicId - A pointer to a string containing the name of the public identifier of the input source, or null if not available.
systemId - A pointer to a string containing the name of the system identifier of the input source. The system identifier must be fully resolved.
lineNumber - The line number in the input source, or -1 if not available.
columnNumber - The column number in the input source, or -1 if not available.

ovirtual ~SAXParseException()
Destructor.

o SAXParseException interface.

oibxmlchar* getPublicId() const
Return the public identifier of the XML data which is subject of the exception.

Returns:
A pointer to a string containing the name of the public identifier, or null if not available.

oibxmlchar* getSystemId() const
Return the system identifier of the XML data which is subject of the exception.

Returns:
A pointer to a string containing the name of the system identifier.

oint getLineNumber() const
Return the line number of the XML data which is subject of the exception.

Returns:
The line number where the XML data subject of the exception ends, or -1 if none is available.

oint getColumnNumber() const
Return the column number of the XML data which is subject of the exception.

Returns:
The column number where the XML data subject of the exception ends, or -1 if none is available.


This class has no child classes.

Alphabetic index Hierarchy of classes



This page was generated with the help of DOC++.