ACEXML_SAXParseException Class Reference

ACEXML_SAXParseException. More...

#include <ACEXML/common/SAXExceptions.h>

Inheritance diagram for ACEXML_SAXParseException:

Inheritance graph
[legend]
Collaboration diagram for ACEXML_SAXParseException:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ACEXML_SAXParseException (void)
 Default constructor.

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

 ACEXML_SAXParseException (const ACEXML_SAXParseException &ex)
 Copy constructor.

ACEXML_SAXParseExceptionoperator= (const ACEXML_SAXParseException &ex)
 Assignment operator.

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


Static Protected Attributes

const ACEXML_Charexception_name_ = ACE_TEXT ("ACEXML_SAXParseException")

Detailed Description

ACEXML_SAXParseException.

Definition at line 165 of file SAXExceptions.h.


Constructor & Destructor Documentation

ACEXML_SAXParseException::ACEXML_SAXParseException void   ) 
 

Default constructor.

Definition at line 206 of file SAXExceptions.cpp.

00207 {
00208 }

ACEXML_SAXParseException::ACEXML_SAXParseException const ACEXML_Char msg  ) 
 

Constructor with an initializing exception message.

Definition at line 210 of file SAXExceptions.cpp.

References ACEXML_Char.

00211   : ACEXML_SAXException (msg)
00212 {
00213 }

ACEXML_SAXParseException::ACEXML_SAXParseException const ACEXML_SAXParseException ex  ) 
 

Copy constructor.

Definition at line 215 of file SAXExceptions.cpp.

00216   : ACEXML_SAXException (ex)
00217 {
00218 }

ACEXML_SAXParseException::~ACEXML_SAXParseException void   )  [virtual]
 

Destructor.

Definition at line 235 of file SAXExceptions.cpp.

00236 {
00237 }


Member Function Documentation

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

Static narrow operation.

Reimplemented from ACEXML_SAXException.

Definition at line 228 of file SAXExceptions.cpp.

References ACE_TEXT, and ACEXML_Exception::is_a().

00229 {
00230   if (ex->is_a (ACE_TEXT ("ACEXML_SAXParseException")))
00231     return dynamic_cast<ACEXML_SAXParseException*> (ex);
00232   return 0;
00233 }

ACEXML_INLINE void ACEXML_SAXParseException::_raise void   )  [virtual]
 

Throw the exception.

Reimplemented from ACEXML_SAXException.

Definition at line 30 of file SAXExceptions.i.

References ACEXML_RAISE.

00031 {
00032   ACEXML_RAISE (*this);
00033 }

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

Dynamically create a copy of this exception.

Reimplemented from ACEXML_SAXException.

Definition at line 240 of file SAXExceptions.cpp.

References ACE_NEW_RETURN.

00241 {
00242   ACEXML_Exception *tmp;
00243   ACE_NEW_RETURN (tmp, ACEXML_SAXParseException (*this), 0);
00244   return tmp;
00245 }

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

Return the name of the exception.

Reimplemented from ACEXML_SAXException.

Definition at line 54 of file SAXExceptions.i.

References exception_name_.

00055 {
00056   return ACEXML_SAXParseException::exception_name_;
00057 }

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

Check whether this is an exception of type specified by .

Reimplemented from ACEXML_SAXException.

Definition at line 248 of file SAXExceptions.cpp.

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

00249 {
00250   return ACE_OS::strcmp (ACEXML_SAXParseException::exception_name_,
00251                          name) == 0
00252     || this->ACEXML_SAXException::is_a (name);
00253 }

ACEXML_SAXParseException & ACEXML_SAXParseException::operator= const ACEXML_SAXParseException ex  ) 
 

Assignment operator.

Definition at line 221 of file SAXExceptions.cpp.

References ACEXML_SAXException::operator=().

00222 {
00223   this->ACEXML_SAXException::operator= (ex);
00224   return *this;
00225 }

void ACEXML_SAXParseException::print void   )  [virtual]
 

Print out exception using ACE_DEBUG.

Reimplemented from ACEXML_SAXException.

Definition at line 256 of file SAXExceptions.cpp.

References ACE_ERROR, ACE_TEXT, and LM_ERROR.

00257 {
00258   ACE_ERROR ((LM_ERROR,
00259               ACE_TEXT ("ACEXML: (%P|%t) %s: %s\n"),
00260                         this->exception_name_, this->message()));
00261 }


Member Data Documentation

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

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

Reimplemented from ACEXML_SAXException.

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