41 #ifndef _exception_cpp
42 #define _exception_cpp
45 #include "stringtool.h"
59 const Whole& FileLine)
60 : ErrorMessage(Message),
61 ExceptionJavaTypeName(JavaTypeName),
62 ExceptionTypeName(TypeName),
63 Function(SrcFunction),
82 {
return ExceptionTypeName; }
85 {
return ExceptionJavaTypeName; }
101 ErrorStream <<
"MEZZANINE EXCEPTION(" << ExceptionTypeName <<
"): "
102 << ErrorMessage <<
" In " << Function <<
". " <<
"At line "
105 return ErrorStream.str();
107 return "Error details unknown erro caught while generating exception message. :(";
117 #endif // \exception_cpp
const Mezzanine::String & GetFile() const
Gets the file of the exception.
const Mezzanine::Whole & GetLine() const
Gets the line number of the exception.
void _Log(const T &Message)
Runtime event and message logging.
Mezzanine::String GetCompleteMessage() const
Constructs the complete message from all the information provided about the exception.
ExceptionBase(const Mezzanine::String &TypeName, const Mezzanine::String &JavaTypeName, const Mezzanine::String &Message, const Mezzanine::String &SrcFunction, const Mezzanine::String &SrcFile, const Mezzanine::Whole &FileLine)
Simple Constructor.
This implements the exception hiearchy for Mezzanine.
std::stringstream StringStream
A Datatype used for streaming operations with strings.
const Mezzanine::String & GetFunction() const
Gets the function of the exception.
const Mezzanine::String & GetExceptionTypeName() const
Gets the name of the exception type.
static Boole SingletonValid()
Checks to see if the singleton pointer is valid.
static Entresol * GetSingletonPtr()
Fetches a pointer to the singleton.
const String ConstString
A Datatype used to a series of imutable characters.
The bulk of the engine components go in this namspace.
unsigned long Whole
Whole is an unsigned integer, it will be at least 32bits in size.
const Mezzanine::String & GetExceptionJavaTypeName() const
Gets the name of the exception type.
virtual const char * what() const
Retrieves the error message.
virtual ~ExceptionBase()
Class destructor.
std::string String
A datatype used to a series of characters.