![]() |
Blamite Game Engine - blam!
00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
|
Class representing a custom Blamite exception. More...
#include <exception.h>
Public Member Functions | |
BlamException (BlamExceptionType _type, std::string _message) | |
Constructs a new Blamite exception. More... | |
BlamException (std::string _message) | |
Constructs a new Blamite exception. More... | |
BlamExceptionType | GetType () |
Retrieves the type of the exception. More... | |
std::string | GetExceptionMessage () |
Retrieves the message describing the exception. More... | |
Class representing a custom Blamite exception.
While there likely won't be many cases where we want or need to use a custom exception, any custom exceptions that do get introduced should implement this as a base class.
BlamException::BlamException | ( | BlamExceptionType | _type, |
std::string | _message | ||
) |
Constructs a new Blamite exception.
_type | - The type of the exception. |
_message | - A message describing the exception. Should include as much information as possible for debugging purposes. |
BlamException::BlamException | ( | std::string | _message | ) |
Constructs a new Blamite exception.
_message | - A message describing the exception. Should include as much information as possible for debugging purposes. |
std::string BlamException::GetExceptionMessage | ( | ) |
Retrieves the message describing the exception.
BlamExceptionType BlamException::GetType | ( | ) |
Retrieves the type of the exception.