class SAXException : public XMLException

Encapsulate a general SAX error or warning

Inheritance:


Public

Constructors and Destructor
SAXException ()
Default constructor The message string is set to just "SAXException"
SAXException (const XMLCh* const msg)
Create a new SAXException
SAXException (const SAXException& toCopy)
Create a new SAXException wrapping an existing exception
virtual ~SAXException ()
Destructor
Miscellaneous
virtual XMLException* duplicate () const
Return the embedded exception, if any

Documentation

Encapsulate a general SAX error or warning.

This class can contain basic error or warning information from either the XML parser or the application: a parser writer or application writer can subclass it to provide additional functionality. SAX handlers may throw this exception or any exception subclassed from it.

If the application needs to pass through other types of exceptions, it must wrap those exceptions in a SAXException or an exception derived from a SAXException.

If the parser or application needs to include information about a specific location in an XML document, it should use the SAXParseException subclass.

Constructors and Destructor

SAXException()
Default constructor The message string is set to just "SAXException"

SAXException(const XMLCh* const msg)
Create a new SAXException.
Parameters:
msg - The error or warning message.

SAXException(const SAXException& toCopy)
Create a new SAXException wrapping an existing exception.

The existing exception will be embedded in the new one, and its message will become the default message for the SAXException.

Parameters:
toCopy - The exception to be wrapped in a SAXException.

virtual ~SAXException()
Destructor

Miscellaneous

virtual XMLException* duplicate() const
Return the embedded exception, if any.
Returns:
The embedded exception, or null if there is none.


Direct child classes:
SAXParseException
Version:
Revision:
See Also:
SAXParseException

alphabetic index hierarchy of classes


XML Parser for C++ 2.0
Copyright © IBM Corp, 1999
Center for Java Technology
10275 N. De Anza Blvd.
Cupertino CA 95014 USA
Email: xml4c@us.ibm.com

IBM Logo