#include <ACEXML/common/Exception.h>
Inheritance diagram for ACEXML_Exception:

Public Member Functions | |
| virtual | ~ACEXML_Exception (void) |
| Destructor. | |
| virtual void | _raise (void)=0 |
| Throw the exception. | |
| virtual const ACEXML_Char * | id (void) const |
| Return the exception type. (for safe downcast.). | |
| virtual ACEXML_Exception * | duplicate (void) 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 . | |
| virtual void | print (void)=0 |
| Print out exception using ACE_DEBUG. | |
Static Public Member Functions | |
| ACEXML_Exception * | _downcast (ACEXML_Exception *ex) |
| Static narrow operation. | |
Protected Member Functions | |
| ACEXML_Exception (void) | |
| Default contructor. | |
Static Protected Attributes | |
| const ACEXML_Char * | exception_name_ = ACE_TEXT ("ACEXML_Exception") |
| const ACEXML_Char * | null_ = ACE_TEXT ("") |
| A null string that we return when there is no 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.
Definition at line 44 of file Exception.h.
|
|
Destructor.
Definition at line 20 of file Exception.cpp.
00021 {
00022 }
|
|
|
Default contructor.
Definition at line 16 of file Exception.cpp.
00017 {
00018 }
|
|
|
Static narrow operation.
Reimplemented in ACEXML_SAXException, ACEXML_SAXNotSupportedException, ACEXML_SAXNotRecognizedException, and ACEXML_SAXParseException. Definition at line 10 of file Exception.i.
00011 {
00012 return x;
00013 }
|
|
|
Throw the exception.
Implemented in ACEXML_SAXException, ACEXML_SAXNotSupportedException, ACEXML_SAXNotRecognizedException, and ACEXML_SAXParseException. |
|
|
Dynamically create a copy of this exception.
Implemented in ACEXML_SAXException, ACEXML_SAXNotSupportedException, ACEXML_SAXNotRecognizedException, and ACEXML_SAXParseException. Referenced by ACEXML_Env::ACEXML_Env(). |
|
|
Return the exception type. (for safe downcast.).
Reimplemented in ACEXML_SAXException, ACEXML_SAXNotSupportedException, ACEXML_SAXNotRecognizedException, and ACEXML_SAXParseException. Definition at line 4 of file Exception.i. References exception_name_.
00005 {
00006 return ACEXML_Exception::exception_name_;
00007 }
|
|
|
Check whether this is an exception of type specified by .
Reimplemented in ACEXML_SAXException, ACEXML_SAXNotSupportedException, ACEXML_SAXNotRecognizedException, and ACEXML_SAXParseException. Definition at line 25 of file Exception.cpp. References ACEXML_Char, exception_name_, and ACE_OS::strcmp(). Referenced by ACEXML_SAXParseException::_downcast(), ACEXML_SAXNotRecognizedException::_downcast(), ACEXML_SAXNotSupportedException::_downcast(), ACEXML_SAXException::_downcast(), and ACEXML_SAXException::is_a().
00026 {
00027 return ACE_OS::strcmp (ACEXML_Exception::exception_name_, name) == 0;
00028 }
|
|
|
Print out exception using ACE_DEBUG.
Implemented in ACEXML_SAXException, ACEXML_SAXNotSupportedException, ACEXML_SAXNotRecognizedException, and ACEXML_SAXParseException. Definition at line 31 of file Exception.cpp. References ACE_ERROR, ACE_TEXT, and LM_ERROR.
00032 {
00033 ACE_ERROR ((LM_ERROR,
00034 ACE_TEXT ("ACEXML: (%P|%t) EXCEPTION : %s\n"),
00035 this->exception_name_));
00036 }
|
|
|
All exceptions have names. This name is used to identify the type of an exception. Reimplemented in ACEXML_SAXException, ACEXML_SAXNotSupportedException, ACEXML_SAXNotRecognizedException, and ACEXML_SAXParseException. Definition at line 8 of file Exception.cpp. |
|
|
A null string that we return when there is no exception.
Definition at line 10 of file Exception.cpp. |
1.3.6