Public Member Functions | Static Public Member Functions | Static Protected Attributes

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 <name>.
virtual void print (void) const
 Print out exception using ACE_DEBUG.

Static Public Member Functions

static ACEXML_SAXParseException_downcast (ACEXML_Exception *ex)
 Static narrow operation.

Static Protected Attributes

static const ACEXML_Char exception_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 197 of file SAXExceptions.cpp.

{
}

ACEXML_SAXParseException::ACEXML_SAXParseException ( const ACEXML_Char msg  ) 

Constructor with an initializing exception message.

Definition at line 201 of file SAXExceptions.cpp.

  : ACEXML_SAXException (msg)
{
}

ACEXML_SAXParseException::ACEXML_SAXParseException ( const ACEXML_SAXParseException ex  ) 

Copy constructor.

Definition at line 206 of file SAXExceptions.cpp.

  : ACEXML_SAXException (ex)
{
}

ACEXML_SAXParseException::~ACEXML_SAXParseException ( void   )  [virtual]

Destructor.

Definition at line 224 of file SAXExceptions.cpp.

{
}


Member Function Documentation

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

Static narrow operation.

Reimplemented from ACEXML_SAXException.

Definition at line 219 of file SAXExceptions.cpp.

{
  return dynamic_cast<ACEXML_SAXParseException*> (ex);
}

ACEXML_INLINE void ACEXML_SAXParseException::_raise ( void   )  [virtual]

Throw the exception.

Reimplemented from ACEXML_SAXException.

Definition at line 30 of file SAXExceptions.inl.

{
  ACEXML_RAISE (*this);
}

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.

{
  ACEXML_Exception *tmp;
  ACE_NEW_RETURN (tmp, ACEXML_SAXParseException (*this), 0);
  return tmp;
}

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

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.

ACEXML_SAXParseException & ACEXML_SAXParseException::operator= ( const ACEXML_SAXParseException ex  ) 

Assignment operator.

Definition at line 212 of file SAXExceptions.cpp.

{
  this->ACEXML_SAXException::operator= (ex);
  return *this;
}

void ACEXML_SAXParseException::print ( void   )  const [virtual]

Print out exception using ACE_DEBUG.

Reimplemented from ACEXML_SAXException.

Definition at line 245 of file SAXExceptions.cpp.

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


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 199 of file SAXExceptions.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines