Xerces-C++ 3.2.4
SAXException Class Reference

Encapsulate a general SAX error or warning. More...

#include <xercesc/sax/SAXException.hpp>

Inheritance diagram for SAXException:
XMemory SAXNotRecognizedException SAXNotSupportedException SAXParseException

Public Member Functions

Constructors and Destructor
 SAXException (MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
 Default constructor.
 SAXException (const XMLCh *const msg, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
 Create a new SAXException.
 SAXException (const char *const msg, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
 Create a new SAXException.
 SAXException (const SAXException &toCopy)
 Copy constructor.
virtual ~SAXException ()
 Destructor.
Public Operators
SAXExceptionoperator= (const SAXException &toCopy)
 Assignment operator.
Public Member Functions inherited from XMemory
void * operator new (size_t size)
 This method overrides operator new.
void * operator new (size_t size, MemoryManager *memMgr)
 This method defines a custom operator new, that will use the provided memory manager to perform the allocation.
void * operator new (size_t size, void *ptr)
 This method overrides placement operator new.
void operator delete (void *p)
 This method overrides operator delete.
void operator delete (void *p, MemoryManager *memMgr)
 This method provides a matching delete for the custom operator new.
void operator delete (void *p, void *ptr)
 This method provides a matching delete for the placement new.

Getter Methods

XMLChfMsg
MemoryManagerfMemoryManager
virtual const XMLChgetMessage () const
 Get the contents of the message.

Additional Inherited Members

Protected Member Functions inherited from XMemory
 XMemory ()
 Protected default constructor.

Detailed Description

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.

See also
SAXParseException::SAXParseException

Constructor & Destructor Documentation

◆ SAXException() [1/4]

SAXException::SAXException ( MemoryManager *const manager = XMLPlatformUtils::fgMemoryManager)

Default constructor.

Parameters
managerPointer to the memory manager to be used to allocate objects.

References XMLPlatformUtils::fgMemoryManager, fMemoryManager, and fMsg.

Referenced by operator=(), SAXException(), SAXNotRecognizedException::SAXNotRecognizedException(), and SAXNotSupportedException::SAXNotSupportedException().

◆ SAXException() [2/4]

SAXException::SAXException ( const XMLCh *const msg,
MemoryManager *const manager = XMLPlatformUtils::fgMemoryManager )

Create a new SAXException.

Parameters
msgThe error or warning message.
managerPointer to the memory manager to be used to allocate objects.

References XMLPlatformUtils::fgMemoryManager, fMemoryManager, and fMsg.

◆ SAXException() [3/4]

SAXException::SAXException ( const char *const msg,
MemoryManager *const manager = XMLPlatformUtils::fgMemoryManager )

Create a new SAXException.

Parameters
msgThe error or warning message.
managerPointer to the memory manager to be used to allocate objects.

References XMLPlatformUtils::fgMemoryManager, fMemoryManager, and fMsg.

◆ SAXException() [4/4]

SAXException::SAXException ( const SAXException & toCopy)

Copy constructor.

Parameters
toCopyThe exception to be copy constructed

References fMemoryManager, fMsg, SAXException(), and XMemory::XMemory().

◆ ~SAXException()

virtual SAXException::~SAXException ( )
virtual

Destructor.

References fMemoryManager, and fMsg.

Member Function Documentation

◆ getMessage()

virtual const XMLCh * SAXException::getMessage ( ) const
virtual

Get the contents of the message.

References fMsg.

◆ operator=()

SAXException & SAXException::operator= ( const SAXException & toCopy)

Assignment operator.

Parameters
toCopyThe object to be copied

References fMemoryManager, fMsg, XMLString::replicate(), and SAXException().

Member Data Documentation

◆ fMemoryManager

MemoryManager* SAXException::fMemoryManager
protected

◆ fMsg


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