CigiException Class Reference

#include <CigiException.h>

Inheritance diagram for CigiException:

exception CigiAllocFailedException CigiBufferOverrunException CigiBufferTooSmallException CigiCalledOutOfSequenceException CigiImproperPacketException CigiInvalidOpcodeException CigiInvalidPacketException CigiInvalidPacketSizeException CigiInvalidSessionException CigiInvalidSessionTypeException CigiInvalidUserPacketException CigiMaxSessionsException CigiMissingIgControlException CigiMissingStartOfFrameException CigiNotImplementedException CigiNullPointerException CigiPacketTooLargeException CigiValueOutOfRangeException CigiWrongVersionException List of all members.

Public Member Functions

 CigiException (void)
virtual ~CigiException (void) throw ()
bool HasMessage (void) const
int GetErrorCode (void) const
bool HasErrorCode (void) const
virtual const char * what () const throw ()

Protected Attributes

char * Msg
int ErrorCode

Detailed Description

The general base exception class for the CIGI API

Definition at line 74 of file CigiException.h.


Constructor & Destructor Documentation

CigiException::CigiException ( void   )  [inline]

The general constructor for the base CIGI exception class

Definition at line 85 of file CigiException.h.

00085 { };

virtual CigiException::~CigiException ( void   )  throw () [inline, virtual]

The general destructor for the base CIGI exception class

Definition at line 91 of file CigiException.h.

00091 { };


Member Function Documentation

int CigiException::GetErrorCode ( void   )  const [inline]

Gets the error code for the exception.

Returns:
The error code for this exception.

Definition at line 111 of file CigiException.h.

00111 { return(ErrorCode); }

bool CigiException::HasErrorCode ( void   )  const [inline]

Returns whether this exception has a set error code.

Returns:
True if this exception has an error code set.

Definition at line 117 of file CigiException.h.

References CIGI_ERROR_NONE.

00118    {
00119       return(ErrorCode != CIGI_ERROR_NONE); // same as CIGI_SUCCESS
00120    }

bool CigiException::HasMessage ( void   )  const [inline]

Returns whether the exception has a message.

Returns:
true for having a message and false for no msg..

Definition at line 102 of file CigiException.h.

00103    {
00104       return(Msg != NULL);
00105    }

virtual const char* CigiException::what (  )  const throw () [inline, virtual]

The virtual implemented what funtion.

Returns:
The message for this exception.

Definition at line 127 of file CigiException.h.

00127 { return(Msg); }


Member Data Documentation

int CigiException::ErrorCode [protected]

The error code for this exception.

Definition at line 140 of file CigiException.h.

char* CigiException::Msg [protected]

The message for this exception.

Definition at line 135 of file CigiException.h.


The documentation for this class was generated from the following file:
Generated on Wed Apr 29 09:00:08 2009 for CCL by  doxygen 1.4.7