Keos::CException Class Reference

Base class for the exceptions. More...

#include <KeosException.h>

Inheritance diagram for Keos::CException:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 CException (const String &strMessage="")
 Constructor.
virtual ~CException ()
 Destructor.
virtual const char * what () const
 Return the message of the exception.
const char * what_short () const
 Return a short description of the exception.
void SetFileLine (String strFile, int nLine)
 Set The file and line wher the exception occured.

Static Public Member Functions

static CExceptionGetLastException (void) throw ()
 Retrieves a pointer to the last exception created.

Protected Attributes

String m_strMessage
 Message associated to the exception.
String m_strShortMessage
 Short message for the log.

Static Protected Attributes

static CExceptionms_pLast
 The last exception created.

Detailed Description

Base class for the exceptions.

Definition at line 42 of file KeosException.h.


Constructor & Destructor Documentation

Keos::CException::CException ( const String strMessage = ""  ) 

Constructor.

Parameters:
strMessage Message of the exception .

Definition at line 34 of file KeosException.cpp.

References m_strShortMessage, and ms_pLast.

Keos::CException::~CException (  )  [virtual]

Destructor.

Definition at line 42 of file KeosException.cpp.


Member Function Documentation

const char * Keos::CException::what (  )  const [virtual]

Return the message of the exception.

Returns:
Message of the exception.

Definition at line 46 of file KeosException.cpp.

References m_strMessage.

Referenced by Keos::handleTerminate(), and Keos::CShadersLoader::LoadFromFile().

const char * Keos::CException::what_short (  )  const

Return a short description of the exception.

Returns:
Short description of the exception.

Definition at line 52 of file KeosException.cpp.

References m_strShortMessage.

CException * Keos::CException::GetLastException ( void   )  throw () [static]

Retrieves a pointer to the last exception created.

Definition at line 58 of file KeosException.cpp.

References ms_pLast.

Referenced by Keos::handleTerminate().

void Keos::CException::SetFileLine ( String  strFile,
int  nLine 
)

Set The file and line wher the exception occured.

Definition at line 64 of file KeosException.cpp.

References m_strMessage, m_strShortMessage, and Keos::CStringConverter::ToString().


Member Data Documentation

String Keos::CException::m_strMessage [protected]

Message associated to the exception.

Definition at line 77 of file KeosException.h.

Referenced by Keos::CAssertException::CAssertException(), Keos::CBadConversion::CBadConversion(), Keos::CBadDelete::CBadDelete(), Keos::CD3D9Exception::CD3D9Exception(), Keos::CDynLibError::CDynLibError(), Keos::CLoadingFailed::CLoadingFailed(), Keos::COGLException::COGLException(), Keos::COutOfMemory::COutOfMemory(), Keos::CUnsupported::CUnsupported(), SetFileLine(), and what().

String Keos::CException::m_strShortMessage [protected]

Short message for the log.

Definition at line 79 of file KeosException.h.

Referenced by Keos::CBadConversion::CBadConversion(), Keos::CBadDelete::CBadDelete(), Keos::CD3D9Exception::CD3D9Exception(), Keos::CDynLibError::CDynLibError(), CException(), Keos::CLoadingFailed::CLoadingFailed(), Keos::COGLException::COGLException(), Keos::COutOfMemory::COutOfMemory(), Keos::CUnsupported::CUnsupported(), SetFileLine(), and what_short().

CException * Keos::CException::ms_pLast [static, protected]

The last exception created.

Definition at line 81 of file KeosException.h.

Referenced by CException(), and GetLastException().


The documentation for this class was generated from the following files:
Generated on Fri Mar 9 14:29:23 2007 for Keos by  doxygen 1.5.1-p1