#include <Exception.hpp>
Public Member Functions | |
virtual const ExceptionType | getExceptionType () const |
Get the type of exception. | |
virtual const std::string & | getExceptionMessage () const |
Get the exception's message. | |
virtual const char * | what () |
Get the exceptions message. | |
virtual const char * | message () |
Get the exceptions message. | |
virtual | operator const char * () const |
operator overload for const char * -- get the Exception's message | |
Exception (const std::string &Message, ExceptionType Type=EXCEPTION_NORMAL) | |
Default Constructor. | |
Exception (const std::string &Message, const std::string &File, const std::string &Function, int LineNumber, ExceptionType Type=EXCEPTION_NORMAL) | |
Extended Constructor. | |
virtual | ~Exception () throw () |
Destructor. | |
Protected Attributes | |
std::string | mMessage |
the Exception's informational message | |
ExceptionType | mType |
the type of the exceptionl |
Generic Exception class which takes a string message as a constructor For throwing informative error messages
Definition at line 72 of file Exception.hpp.
Exception::Exception | ( | const std::string & | Message, | |
ExceptionType | Type = EXCEPTION_NORMAL | |||
) |
Exception::Exception | ( | const std::string & | Message, | |
const std::string & | File, | |||
const std::string & | Function, | |||
int | LineNumber, | |||
ExceptionType | Type = EXCEPTION_NORMAL | |||
) |
Extended Constructor.
Exception Advanced Constructor.
Definition at line 56 of file Exception.cpp.
References H::Debug::getEnabled(), mMessage, and mType.
Exception::~Exception | ( | ) | throw () [virtual] |