class SAXException

Encapsulate a general SAX error or warning

Inheritance:


Public

Constructors and Destructor
SAXException ()
Default constructor
SAXException (const XMLCh* const msg)
Create a new SAXException
SAXException (const char* const msg)
Create a new SAXException
SAXException (const SAXException& toCopy)
Copy constructor
virtual ~SAXException ()
Destructor
Getter Methods
const XMLCh* getMessage () const
Get the contents of the message
Public Operators
SAXException& operator= (const SAXException& toCopy)
Assignment operator

Documentation

Encapsulate a general SAX error or warning.

This class can contain basic error or warning information from either the XML SAX 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

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

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

SAXException(const SAXException& toCopy)
Copy constructor
Parameters:
toCopy - The exception to be copy constructed

virtual ~SAXException()
Destructor

Public Operators

SAXException& operator=(const SAXException& toCopy)
Assignment operator
Parameters:
toCopy - The object to be copied

Getter Methods

const XMLCh* getMessage() const
Get the contents of the message


Direct child classes:
SAXParseException
See Also:
SAXParseException

alphabetic index hierarchy of classes


Xerces-C XML Parser for C++ Version 1.1
Copyright © 2000 The Apache Software Foundation. All Rights Reserved.

generated by doc++