#include <Exception.hpp>
Inheritance diagram for Core::Exception:

Public Member Functions | |
| virtual | ~Exception () |
| Destructor. | |
| virtual const tchar * | What () const |
| Get the exception details. | |
Protected Member Functions | |
| Exception () | |
| Default constructor. | |
| Exception (const std::tstring &strDetails) | |
| Construction from a string containg the details. | |
Protected Attributes | |
| std::tstring | m_strDetails |
| The error message. | |
Private Member Functions | |
| virtual const char * | what () const |
| Get the ANSI only exception details. | |
This class allows the error message to be ANSI or Unicode, unlike std::exception which is ANSI only. The ctor is protected as you should be throwing a specific derived exception type.
| Core::Exception::~Exception | ( | ) | [virtual] |
Destructor.
| Core::Exception::Exception | ( | ) | [protected] |
Default constructor.
| Core::Exception::Exception | ( | const std::tstring & | strDetails | ) | [protected] |
Construction from a string containg the details.
| const tchar * Core::Exception::What | ( | ) | const [virtual] |
Get the exception details.
| const char * Core::Exception::what | ( | ) | const [private, virtual] |
Get the ANSI only exception details.
This method is marked private to avoid it being called by accident instead of the build agnostic method What(). However it could still be invoked through the base class, so we still need to generate an ANSI version on demand.
std::tstring Core::Exception::m_strDetails [protected] |
The error message.
1.5.2