cMsg Messaging System  6.0
 All Classes Namespaces Files Functions Variables Friends
cmsg::cMsgException Class Reference

Exception includes description and return code. More...

#include <cMsg.hxx>

Inheritance diagram for cmsg::cMsgException:

Public Member Functions

 cMsgException (void)
 Empty constructor. More...
 
 cMsgException (const string &descr)
 String constructor. More...
 
 cMsgException (const string &descr, int code)
 String and code constructor. More...
 
 cMsgException (const cMsgException &e)
 Copy constructor. More...
 
virtual ~cMsgException (void) throw ()
 Destructor does nothing. More...
 
virtual string toString (void) const throw ()
 Gets string represention of exception. More...
 
virtual const char * what (void) const throw ()
 Gets char* represention of exception. More...
 

Public Attributes

string descr
 Description. More...
 
int returnCode
 Return code. More...
 

Detailed Description

Exception includes description and return code.

Definition at line 53 of file cMsg.hxx.

Constructor & Destructor Documentation

cMsgException::cMsgException ( void  )

Empty constructor.

Definition at line 225 of file cMsgWrapper.cc.

cMsgException::cMsgException ( const string &  c)

String constructor.

Parameters
cDescription

Definition at line 236 of file cMsgWrapper.cc.

cMsgException::cMsgException ( const string &  c,
int  code 
)

String and code constructor.

Parameters
cDescription
codeReturn code

Definition at line 248 of file cMsgWrapper.cc.

cMsgException::cMsgException ( const cMsgException e)

Copy constructor.

Parameters
eAnother exception

Definition at line 259 of file cMsgWrapper.cc.

cMsgException::~cMsgException ( void  )
throw (
)
virtual

Destructor does nothing.

Definition at line 268 of file cMsgWrapper.cc.

Member Function Documentation

string cMsgException::toString ( void  ) const
throw (
)
virtual

Gets string represention of exception.

Returns
String representing exception

Definition at line 280 of file cMsgWrapper.cc.

References descr, and returnCode.

Referenced by what().

const char * cMsgException::what ( void  ) const
throw (
)
virtual

Gets char* represention of exception.

Returns
char* representing exception

Definition at line 295 of file cMsgWrapper.cc.

References toString().

Member Data Documentation

string cmsg::cMsgException::descr

Description.

Definition at line 67 of file cMsg.hxx.

Referenced by toString().

int cmsg::cMsgException::returnCode

Return code.

Definition at line 68 of file cMsg.hxx.

Referenced by toString().


The documentation for this class was generated from the following files: