#include <Exceptions.h>
Currently defined exceptions include
Public Member Functions | |
AuroraException (string message, string file=string(), unsigned int line=0, const char *type="AuroraException") | |
Constructor. | |
virtual | ~AuroraException () throw () |
Destructor. | |
virtual const char * | what () const throw () |
Returns the message as a C string. | |
string | getMessage () const |
Returns the message. | |
string | getFile () const |
Returns the source file in which the exception was thrown (or an empty string if unknown). | |
unsigned int | getLine () const |
Returns the line number in the source file in which the exception was thrown (or an empty string if unknown). | |
const char * | getType () const |
Returns the type of the exception (e.g., "AuroraException" or "AuroraNoSuchEntityException"). | |
string | as_string () const |
Returns a description containing all known information about the message. | |
string | getStackTrace () const |
Returns a stack trace describing where the exception was thrown. |
|
Constructor. An AuroraException should never be thrown directly; use the Throw macro instead.
|
|
Destructor.
|
|
Returns a description containing all known information about the message.
|
|
Returns the source file in which the exception was thrown (or an empty string if unknown).
|
|
Returns the line number in the source file in which the exception was thrown (or an empty string if unknown).
|
|
Returns the message.
|
|
Returns a stack trace describing where the exception was thrown. Uses external programs; may be very slow. |
|
Returns the type of the exception (e.g., "AuroraException" or "AuroraNoSuchEntityException").
|
|
Returns the message as a C string. The string is owned by this object, so the pointer becomes invalid upon description of the AuroraException. |