#include <adevs_exception.h>
Public Member Functions | |
exception (const char *msg, void *model=NULL) | |
exception (const adevs::exception &src) | |
const char * | what () const throw () |
void * | who () const |
~exception () throw () |
adevs::exception::exception | ( | const char * | msg, | |
void * | model = NULL | |||
) | [inline] |
Create an exception with an error message and, if appropriate, a pointer to the model that created the error. To avoid templated exceptions, the model pointer is just a void*.
adevs::exception::exception | ( | const adevs::exception & | src | ) | [inline] |
Copy constructor.
adevs::exception::~exception | ( | ) | throw () [inline] |
Destructor.
const char* adevs::exception::what | ( | ) | const throw () [inline] |
Get the error message.
void* adevs::exception::who | ( | ) | const [inline] |
Get a pointer to the model that created the error.