ACEXML_SAXNotRecognizedException Class Reference

ACEXML_SAXNotRecognizedException. More...

#include <ACEXML/common/SAXExceptions.h>

Inheritance diagram for ACEXML_SAXNotRecognizedException:

Inheritance graph
[legend]
Collaboration diagram for ACEXML_SAXNotRecognizedException:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ACEXML_SAXNotRecognizedException (void)
 Default constructor.

 ACEXML_SAXNotRecognizedException (const ACEXML_Char *msg)
 Constructor with an initializing exception message.

 ACEXML_SAXNotRecognizedException (const ACEXML_SAXNotRecognizedException &ex)
 Copy constructor.

ACEXML_SAXNotRecognizedExceptionoperator= (const ACEXML_SAXNotRecognizedException &ex)
 Assignment operator.

virtual ~ACEXML_SAXNotRecognizedException (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_SAXNotRecognizedException_downcast (ACEXML_Exception *ex)
 Static narrow operation.


Static Protected Attributes

const ACEXML_Charexception_name_ = ACE_TEXT ("ACEXML_SAXNotRecognizedException")

Detailed Description

ACEXML_SAXNotRecognizedException.

Definition at line 122 of file SAXExceptions.h.


Constructor & Destructor Documentation

ACEXML_SAXNotRecognizedException::ACEXML_SAXNotRecognizedException void   ) 
 

Default constructor.

Definition at line 148 of file SAXExceptions.cpp.

00149 {
00150 }

ACEXML_SAXNotRecognizedException::ACEXML_SAXNotRecognizedException const ACEXML_Char msg  ) 
 

Constructor with an initializing exception message.

Definition at line 152 of file SAXExceptions.cpp.

References ACEXML_Char.

00153   : ACEXML_SAXException (msg)
00154 {
00155 }

ACEXML_SAXNotRecognizedException::ACEXML_SAXNotRecognizedException const ACEXML_SAXNotRecognizedException ex  ) 
 

Copy constructor.

Definition at line 157 of file SAXExceptions.cpp.

00158   : ACEXML_SAXException (ex)
00159 {
00160 }

ACEXML_SAXNotRecognizedException::~ACEXML_SAXNotRecognizedException void   )  [virtual]
 

Destructor.

Definition at line 177 of file SAXExceptions.cpp.

00178 {
00179   delete[] this->message_;
00180 }


Member Function Documentation

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

Static narrow operation.

Reimplemented from ACEXML_SAXException.

Definition at line 170 of file SAXExceptions.cpp.

References ACE_TEXT, and ACEXML_Exception::is_a().

00171 {
00172   if (ex->is_a (ACE_TEXT ("ACEXML_SAXNotRecognizedException")))
00173     return dynamic_cast<ACEXML_SAXNotRecognizedException*> (ex);
00174   return 0;
00175 }

ACEXML_INLINE void ACEXML_SAXNotRecognizedException::_raise void   )  [virtual]
 

Throw the exception.

Reimplemented from ACEXML_SAXException.

Definition at line 24 of file SAXExceptions.i.

References ACEXML_RAISE.

00025 {
00026   ACEXML_RAISE (*this);
00027 }

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

Dynamically create a copy of this exception.

Reimplemented from ACEXML_SAXException.

Definition at line 183 of file SAXExceptions.cpp.

References ACE_NEW_RETURN.

00184 {
00185   ACEXML_Exception *tmp;
00186   ACE_NEW_RETURN (tmp, ACEXML_SAXNotRecognizedException (*this), 0);
00187   return tmp;
00188 }

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

Return the name of the exception.

Reimplemented from ACEXML_SAXException.

Definition at line 48 of file SAXExceptions.i.

References exception_name_.

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

Check whether this is an exception of type specified by .

Reimplemented from ACEXML_SAXException.

Definition at line 191 of file SAXExceptions.cpp.

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

00192 {
00193   return ACE_OS::strcmp (ACEXML_SAXNotRecognizedException::exception_name_,
00194                          name) == 0
00195     || this->ACEXML_SAXException::is_a (name);
00196 }

ACEXML_SAXNotRecognizedException & ACEXML_SAXNotRecognizedException::operator= const ACEXML_SAXNotRecognizedException ex  ) 
 

Assignment operator.

Definition at line 163 of file SAXExceptions.cpp.

References ACEXML_SAXException::operator=().

00164 {
00165   this->ACEXML_SAXException::operator= (ex);
00166   return *this;
00167 }

void ACEXML_SAXNotRecognizedException::print void   )  [virtual]
 

Print out exception using ACE_DEBUG.

Reimplemented from ACEXML_SAXException.

Definition at line 199 of file SAXExceptions.cpp.

References ACE_DEBUG, ACE_TEXT, and LM_ERROR.

00200 {
00201   ACE_DEBUG ((LM_ERROR,
00202               ACE_TEXT ("ACEXML: (%P|%t) %s: %s\n"),
00203               this->exception_name_, this->message()));
00204 }


Member Data Documentation

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

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

Reimplemented from ACEXML_SAXException.

Definition at line 13 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:07 2006 for ACEXML by doxygen 1.3.6