ACEXML_SAXNotSupportedException Class Reference

ACEXML_SAXNotSupportedException. More...

#include <ACEXML/common/SAXExceptions.h>

Inheritance diagram for ACEXML_SAXNotSupportedException:

Inheritance graph
[legend]
Collaboration diagram for ACEXML_SAXNotSupportedException:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ACEXML_SAXNotSupportedException (void)
 Default constructor.

 ACEXML_SAXNotSupportedException (const ACEXML_SAXNotSupportedException &ex)
 Copy constructor.

ACEXML_SAXNotSupportedExceptionoperator= (const ACEXML_SAXNotSupportedException &ex)
 Assignment operator.

 ACEXML_SAXNotSupportedException (const ACEXML_Char *msg)
 Constructor which accepts an informational message.

virtual ~ACEXML_SAXNotSupportedException (void)
 Destructor.

virtual void _raise (void)
 Throw the exception.

virtual const ACEXML_Charid (void) const
 Return the name of the exception.

virtual ACEXML_Exceptionduplicate (void) const
 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 .

virtual void print (void)
 Print out exception using ACE_DEBUG.


Static Public Member Functions

ACEXML_SAXNotSupportedException_downcast (ACEXML_Exception *ex)
 Static narrow operation.


Static Protected Attributes

const ACEXML_Charexception_name_ = ACE_TEXT ("ACEXML_SAXNotSupportedException")

Detailed Description

ACEXML_SAXNotSupportedException.

Definition at line 80 of file SAXExceptions.h.


Constructor & Destructor Documentation

ACEXML_SAXNotSupportedException::ACEXML_SAXNotSupportedException void   ) 
 

Default constructor.

Definition at line 88 of file SAXExceptions.cpp.

00089 {
00090 }

ACEXML_SAXNotSupportedException::ACEXML_SAXNotSupportedException const ACEXML_SAXNotSupportedException ex  ) 
 

Copy constructor.

Definition at line 92 of file SAXExceptions.cpp.

00093   : ACEXML_SAXException (ex)
00094 {
00095 }

ACEXML_SAXNotSupportedException::ACEXML_SAXNotSupportedException const ACEXML_Char msg  ) 
 

Constructor which accepts an informational message.

Definition at line 113 of file SAXExceptions.cpp.

References ACEXML_Char.

00114   : ACEXML_SAXException (msg)
00115 {
00116 }

ACEXML_SAXNotSupportedException::~ACEXML_SAXNotSupportedException void   )  [virtual]
 

Destructor.

Definition at line 118 of file SAXExceptions.cpp.

00119 {
00120   delete[] this->message_;
00121 }


Member Function Documentation

ACEXML_SAXNotSupportedException * ACEXML_SAXNotSupportedException::_downcast ACEXML_Exception ex  )  [static]
 

Static narrow operation.

Reimplemented from ACEXML_SAXException.

Definition at line 106 of file SAXExceptions.cpp.

References ACE_TEXT, and ACEXML_Exception::is_a().

00107 {
00108   if (ex->is_a (ACE_TEXT ("ACEXML_SAXNotSupportedException")))
00109     return dynamic_cast<ACEXML_SAXNotSupportedException*> (ex);
00110   return 0;
00111 }

ACEXML_INLINE void ACEXML_SAXNotSupportedException::_raise void   )  [virtual]
 

Throw the exception.

Reimplemented from ACEXML_SAXException.

Definition at line 18 of file SAXExceptions.i.

References ACEXML_RAISE.

00019 {
00020   ACEXML_RAISE (*this);
00021 }

ACEXML_Exception * ACEXML_SAXNotSupportedException::duplicate void   )  const [virtual]
 

Dynamically create a copy of this exception.

Reimplemented from ACEXML_SAXException.

Definition at line 125 of file SAXExceptions.cpp.

References ACE_NEW_RETURN.

00126 {
00127   ACEXML_Exception *tmp;
00128   ACE_NEW_RETURN (tmp, ACEXML_SAXNotSupportedException (*this), 0);
00129   return tmp;
00130 }

ACEXML_INLINE const ACEXML_Char * ACEXML_SAXNotSupportedException::id void   )  const [virtual]
 

Return the name of the exception.

Reimplemented from ACEXML_SAXException.

Definition at line 42 of file SAXExceptions.i.

References exception_name_.

int ACEXML_SAXNotSupportedException::is_a const ACEXML_Char name  )  [virtual]
 

Check whether this is an exception of type specified by .

Reimplemented from ACEXML_SAXException.

Definition at line 133 of file SAXExceptions.cpp.

References ACEXML_Char, exception_name_, ACEXML_SAXException::is_a(), and ACE_OS::strcmp().

00134 {
00135   return ACE_OS::strcmp (ACEXML_SAXNotSupportedException::exception_name_,
00136                          name) == 0
00137     || this->ACEXML_SAXException::is_a (name);
00138 }

ACEXML_SAXNotSupportedException & ACEXML_SAXNotSupportedException::operator= const ACEXML_SAXNotSupportedException ex  ) 
 

Assignment operator.

Definition at line 98 of file SAXExceptions.cpp.

References ACEXML_SAXException::operator=().

00100 {
00101   this->ACEXML_SAXException::operator= (ex);
00102   return *this;
00103 }

void ACEXML_SAXNotSupportedException::print void   )  [virtual]
 

Print out exception using ACE_DEBUG.

Reimplemented from ACEXML_SAXException.

Definition at line 141 of file SAXExceptions.cpp.

References ACE_DEBUG, ACE_TEXT, and LM_ERROR.

00142 {
00143   ACE_DEBUG ((LM_ERROR,
00144               ACE_TEXT ("ACEXML: (%P|%t) %s: %s\n"),
00145               this->exception_name_, this->message()));
00146 }


Member Data Documentation

const ACEXML_Char * ACEXML_SAXNotSupportedException::exception_name_ = ACE_TEXT ("ACEXML_SAXNotSupportedException") [static, protected]
 

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

Reimplemented from ACEXML_SAXException.

Definition at line 11 of file SAXExceptions.cpp.

Referenced by id(), and is_a().


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 11:48:08 2006 for ACEXML by doxygen 1.3.6