#include <KeosException.h>
Inheritance diagram for Keos::CException:

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 CException * | GetLastException (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 CException * | ms_pLast |
| The last exception created. | |
Definition at line 42 of file KeosException.h.
| Keos::CException::CException | ( | const String & | strMessage = "" |
) |
Constructor.
| strMessage | Message of the exception . |
Definition at line 34 of file KeosException.cpp.
References m_strShortMessage, and ms_pLast.
| Keos::CException::~CException | ( | ) | [virtual] |
| const char * Keos::CException::what | ( | ) | const [virtual] |
Return the 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.
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().
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().
1.5.1-p1