Public Member Functions | |
Exception (char *error_message,...) | |
Constructor. | |
Exception (Exception const &other_exception) | |
Copy constructor. | |
virtual void | raise () |
Raises this exception. | |
const char * | what () |
Gets the error message. |
e2d::core::Exception::Exception | ( | char * | error_message, | |
... | ||||
) |
This constructor is the only way to set an error message to an exception. If you want to throw an exception, you may create an object of this class using this constructor (recommended), or using the default constructor, but then there will be no error message and you may end up confused. The error message can be set the same way you would use printf (with varargs). Take care because the message is only 1024 bytes wide.
error_message | The error message. |
e2d::core::Exception::Exception | ( | Exception const & | other_exception | ) |
Required to all classes that are thrown
other_exception | The exception to copy from. |
void e2d::core::Exception::raise | ( | ) | [virtual] |
Convenience method whose purpose is to throw this object.
const char * e2d::core::Exception::what | ( | ) |