Xerces-C++
3.1.2
|
Encapsulate a general SAX error or warning. More...
Public Member Functions | |
Constructors and Destructor | |
SAXException (MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager) | |
Default constructor. More... | |
SAXException (const XMLCh *const msg, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager) | |
Create a new SAXException. More... | |
SAXException (const char *const msg, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager) | |
Create a new SAXException. More... | |
SAXException (const SAXException &toCopy) | |
Copy constructor. More... | |
virtual | ~SAXException () |
Destructor. More... | |
Public Operators | |
SAXException & | operator= (const SAXException &toCopy) |
Assignment operator. More... | |
Getter Methods | |
virtual const XMLCh * | getMessage () const |
Get the contents of the message. More... | |
Public Member Functions inherited from XMemory | |
void * | operator new (size_t size) |
This method overrides operator new. More... | |
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. More... | |
void * | operator new (size_t size, void *ptr) |
This method overrides placement operator new. More... | |
void | operator delete (void *p) |
This method overrides operator delete. More... | |
void | operator delete (void *p, MemoryManager *memMgr) |
This method provides a matching delete for the custom operator new. More... | |
void | operator delete (void *p, void *ptr) |
This method provides a matching delete for the placement new. More... | |
Protected Attributes | |
XMLCh * | fMsg |
MemoryManager * | fMemoryManager |
Additional Inherited Members | |
Protected Member Functions inherited from XMemory | |
XMemory () | |
Protected default constructor. More... | |
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.
SAXException::SAXException | ( | MemoryManager *const | manager = XMLPlatformUtils::fgMemoryManager | ) |
Default constructor.
manager | Pointer to the memory manager to be used to allocate objects. |
SAXException::SAXException | ( | const XMLCh *const | msg, |
MemoryManager *const | manager = XMLPlatformUtils::fgMemoryManager |
||
) |
Create a new SAXException.
msg | The error or warning message. |
manager | Pointer to the memory manager to be used to allocate objects. |
SAXException::SAXException | ( | const char *const | msg, |
MemoryManager *const | manager = XMLPlatformUtils::fgMemoryManager |
||
) |
Create a new SAXException.
msg | The error or warning message. |
manager | Pointer to the memory manager to be used to allocate objects. |
SAXException::SAXException | ( | const SAXException & | toCopy | ) |
Copy constructor.
toCopy | The exception to be copy constructed |
|
virtual |
Destructor.
|
virtual |
Get the contents of the message.
SAXException& SAXException::operator= | ( | const SAXException & | toCopy | ) |
Assignment operator.
toCopy | The object to be copied |
References fMemoryManager, fMsg, and XMLString::replicate().
|
protected |
Referenced by operator=().
|
protected |
Referenced by operator=().