Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

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 Methods

 ACEXML_SAXParseException (void)
 Default constructor. More...

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

 ACEXML_SAXParseException (const ACEXML_SAXParseException &ex)
 Copy constructor. More...

virtual ~ACEXML_SAXParseException (void)
 Destructor. More...

virtual void _raise (void)
 Throw the exception. More...

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

virtual ACEXML_Exceptionduplicate (void) const
 Dynamically create a copy of this exception. More...

virtual int is_a (const ACEXML_Char *name)
 Check whether this is an exception of type specified by <name>. More...

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


Static Public Methods

ACEXML_SAXParseException * _downcast (ACEXML_Exception *ex)
 Static narrow operation. More...


Static Protected Attributes

const ACEXML_Charexception_name_ = ACEXML_SAXParseException_name
 All exceptions have names. This name is used to identify the type of an exception. More...


Detailed Description

ACEXML_SAXParseException.

Definition at line 158 of file SAXExceptions.h.


Constructor & Destructor Documentation

ACEXML_SAXParseException::ACEXML_SAXParseException void   
 

Default constructor.

Definition at line 210 of file SAXExceptions.cpp.

00211 {
00212 }

ACEXML_SAXParseException::ACEXML_SAXParseException const ACEXML_Char   msg
 

Constructor with an initializing exception message.

Definition at line 214 of file SAXExceptions.cpp.

References ACEXML_Char.

00215   : ACEXML_SAXException (msg)
00216 {
00217 }

ACEXML_SAXParseException::ACEXML_SAXParseException const ACEXML_SAXParseException &    ex
 

Copy constructor.

Definition at line 219 of file SAXExceptions.cpp.

00220   : ACEXML_SAXException (ex)
00221 {
00222 }

ACEXML_SAXParseException::~ACEXML_SAXParseException void    [virtual]
 

Destructor.

Definition at line 224 of file SAXExceptions.cpp.

00225 {
00226 }


Member Function Documentation

ACEXML_SAXParseException* ACEXML_SAXParseException::_downcast ACEXML_Exception   ex [static]
 

Static narrow operation.

Reimplemented from ACEXML_SAXException.

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 229 of file SAXExceptions.cpp.

References ACE_NEW_RETURN.

00230 {
00231   ACEXML_Exception *tmp;
00232   ACE_NEW_RETURN (tmp, ACEXML_SAXParseException (*this), 0);
00233   return tmp;
00234 }

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 <name>.

Reimplemented from ACEXML_SAXException.

Definition at line 237 of file SAXExceptions.cpp.

References ACEXML_Char, ACEXML_Exception::exception_name_, exception_name_, ACEXML_SAXException::is_a, and ACE_OS_String::strcmp.

00238 {
00239   if (name == ACEXML_SAXParseException::exception_name_
00240       || ACE_OS::strcmp (ACEXML_Exception::exception_name_,
00241                          name) == 0)
00242     return 1;
00243   else
00244     return this->ACEXML_SAXException::is_a (name);
00245 
00246   ACE_NOTREACHED (return 0;)
00247 }

void ACEXML_SAXParseException::print void    [virtual]
 

Print out exception using ACE_DEBUG.

Reimplemented from ACEXML_SAXException.

Definition at line 250 of file SAXExceptions.cpp.

References ACE_DEBUG, ACE_TEXT, and LM_ERROR.

00251 {
00252   ACE_DEBUG ((LM_ERROR,
00253               ACE_TEXT ("ACEXML: (%P|%t) %s: %s\n"),
00254                         this->exception_name_, this->message()));
00255 }


Member Data Documentation

const ACEXML_Char * ACEXML_SAXParseException::exception_name_ = ACEXML_SAXParseException_name [static, protected]
 

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

Reimplemented from ACEXML_SAXException.

Definition at line 34 of file SAXExceptions.cpp.

Referenced by id, and is_a.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 13:27:27 2003 for ACEXML by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002