ACEXML 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Attributes | List of all members
ACEXML_Exception Class Referenceabstract

ACEXML_Exception. More...

#include <Exception.h>

Inheritance diagram for ACEXML_Exception:
Inheritance graph
[legend]

Public Member Functions

virtual ~ACEXML_Exception ()
 Destructor.
 
virtual void _raise ()=0
 Throw the exception.
 
virtual const ACEXML_Charid () const
 Return the exception type. (for safe downcast.)
 
virtual ACEXML_Exceptionduplicate () const =0
 Dynamically create a copy of this exception.
 
virtual int is_a (const ACEXML_Char *name)
 Check whether this is an exception of type specified by <name>.
 
virtual void print () const =0
 Print out exception using ACE_DEBUG.
 

Static Public Member Functions

static ACEXML_Exception_downcast (ACEXML_Exception *ex)
 Static narrow operation.
 

Protected Member Functions

 ACEXML_Exception ()
 Default constructor.
 

Static Protected Attributes

static const ACEXML_Charexception_name_ = ACE_TEXT ("ACEXML_Exception")
 
static const ACEXML_Charnull_ = ACE_TEXT ("")
 A null string that we return when there is no exception.
 

Detailed Description

ACEXML_Exception.

ACEXML_Exception is the base class for all ACEXML related exceptions. Since ACEXML currently does not support native exceptions, all exceptions should be thrown thru ACEXML_Env.

See also
ACEXML_Env

Constructor & Destructor Documentation

◆ ~ACEXML_Exception()

ACEXML_Exception::~ACEXML_Exception ( )
virtual

Destructor.

◆ ACEXML_Exception()

ACEXML_Exception::ACEXML_Exception ( )
protected

Default constructor.

Member Function Documentation

◆ _downcast()

ACEXML_INLINE ACEXML_Exception * ACEXML_Exception::_downcast ( ACEXML_Exception * ex)
static

Static narrow operation.

◆ _raise()

virtual void ACEXML_Exception::_raise ( )
pure virtual

◆ duplicate()

virtual ACEXML_Exception * ACEXML_Exception::duplicate ( ) const
pure virtual

Dynamically create a copy of this exception.

Implemented in ACEXML_SAXException, ACEXML_SAXNotSupportedException, ACEXML_SAXNotRecognizedException, and ACEXML_SAXParseException.

◆ id()

ACEXML_INLINE const ACEXML_Char * ACEXML_Exception::id ( ) const
virtual

Return the exception type. (for safe downcast.)

Reimplemented in ACEXML_SAXException, ACEXML_SAXNotSupportedException, ACEXML_SAXNotRecognizedException, and ACEXML_SAXParseException.

◆ is_a()

int ACEXML_Exception::is_a ( const ACEXML_Char * name)
virtual

Check whether this is an exception of type specified by <name>.

Reimplemented in ACEXML_SAXException, ACEXML_SAXNotSupportedException, ACEXML_SAXNotRecognizedException, and ACEXML_SAXParseException.

◆ print()

void ACEXML_Exception::print ( ) const
pure virtual

Member Data Documentation

◆ exception_name_

const ACEXML_Char * ACEXML_Exception::exception_name_ = ACE_TEXT ("ACEXML_Exception")
staticprotected

All exceptions have names. This name is used to identify the type of an exception.

◆ null_

const ACEXML_Char * ACEXML_Exception::null_ = ACE_TEXT ("")
staticprotected

A null string that we return when there is no exception.


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