IT_Bus::Exception Class Reference

#include <it_bus/exception.h>

Inheritance diagram for IT_Bus::Exception:

IT_Bus::ObjectBase IT_Bus::DBException IT_Bus::DeserializationException IT_Bus::FaultException IT_Bus::InvalidTransactionIdentifierException IT_Bus::IOException IT_Bus::MalformedURLException IT_Bus::NoActiveTransactionException IT_Bus::NoDataException IT_Bus::NonTransactionalException IT_Bus::NoSuchAttributeException IT_Bus::NotModifiable IT_Bus::SecurityException IT_Bus::SerializationException IT_Bus::ServiceException IT_Bus::ServiceLifecycleException IT_Bus::ShutdownRequestException IT_Bus::StreamTransformerException IT_Bus::TransactionAlreadyActiveException IT_Bus::TransactionInitializationException IT_Bus::TransactionParticipantLimitException IT_Bus::TransactionSystemAlreadyActiveException IT_Bus::TransactionSystemUnavailableException IT_Bus::TransportException IT_Bus::TypeCastException IT_Bus::UnknownTypeException IT_Bus::UserFaultException IT_Bus::WrongTypeException IT_Bus::XMLParseException IT_Bus::XMLResourceException IT_Bus_Services::DeployerException IT_Reflect::ReflectException IT_WSDL::WSDLException List of all members.

Detailed Description

Base class for all Bus exceptions.

All User or System exceptions derive from this base class

Definition at line 22 of file exception.h.

Public Member Functions

 Exception (const String &message)
 Constructor.
 Exception (const char *desc1=0, const char *desc2=0, const char *desc3=0, const char *desc4=0, const char *desc5=0, const char *desc6=0)
 Constructor.
 Exception (IT_ULong error_code, const char *desc1=0, const char *desc2=0, const char *desc3=0, const char *desc4=0, const char *desc5=0, const char *desc6=0)
 Constructor.
 Exception (const Exception &rhs)
 Copy constructor.
virtual ~Exception ()
 Destructor.
Exceptionoperator= (const Exception &rhs)
 Assigment operator.
void create_message (const char *desc1=0, const char *desc2=0, const char *desc3=0, const char *desc4=0, const char *desc5=0, const char *desc6=0)
 This will change the message for the Exception by overwriting the message used to create the Exception originally.
const char * message () const
 Return the exception message.
IT_ULong error () const
 Return the exception error code.
virtual Exceptionclone () const
 Clone the exception onto the heap.
virtual void rethrow () const
 Rethrow the exception.

Private Attributes

CCountedString m_msg
IT_ULong m_error


Constructor & Destructor Documentation

IT_Bus::Exception::Exception ( const String message  ) 

Constructor.

The single argument becomes the message encapsulated within the exception.

IT_Bus::Exception::Exception ( const char *  desc1 = 0,
const char *  desc2 = 0,
const char *  desc3 = 0,
const char *  desc4 = 0,
const char *  desc5 = 0,
const char *  desc6 = 0 
)

Constructor.

One to six arguments may be provided. The message encapsulated within the exception is constructed from the arguments.

IT_Bus::Exception::Exception ( IT_ULong  error_code,
const char *  desc1 = 0,
const char *  desc2 = 0,
const char *  desc3 = 0,
const char *  desc4 = 0,
const char *  desc5 = 0,
const char *  desc6 = 0 
)

Constructor.

The first argument becomes the error code encapsulated within the exception. The other arguments become the exception message.


Member Function Documentation

void IT_Bus::Exception::create_message ( const char *  desc1 = 0,
const char *  desc2 = 0,
const char *  desc3 = 0,
const char *  desc4 = 0,
const char *  desc5 = 0,
const char *  desc6 = 0 
)

This will change the message for the Exception by overwriting the message used to create the Exception originally.

The parameters are defaulted so you can pass between 0 and 6 different const char* messages to this.

Parameters:
const char* desc1 contains a message
const char* desc2 contains a message
const char* desc3 contains a message
const char* desc4 contains a message
const char* desc5 contains a message
const char* desc6 contains a message

const char* IT_Bus::Exception::message (  )  const

Return the exception message.

Returns:
char*

Reimplemented in IT_Bus::DBException.

IT_ULong IT_Bus::Exception::error (  )  const

Return the exception error code.

Returns:
IT_ULong

Reimplemented in IT_Bus::DBException.


Generated on Tue Mar 20 15:28:00 2007 for Artix by  doxygen 1.5.1-p1