#include <adevs_exception.h>
Public Member Functions | |
exception (const char *msg, void *model=NULL) | |
exception (const adevs::exception &src) | |
Copy constructor. | |
const char * | what () const throw () |
Get the error message. | |
void * | who () const |
Get a pointer to the model that created the error. | |
~exception () throw () | |
Destructor. |
The adevs::exception class is derived from the standard template library exception class.
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*.