adevs
Public Member Functions | List of all members
adevs::exception Class Reference

#include <adevs_exception.h>

Inheritance diagram for adevs::exception:
adevs::lookahead_impossible_exception adevs::method_not_supported_exception

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.
 

Detailed Description

The adevs::exception class is derived from the standard template library exception class.

Constructor & Destructor Documentation

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*.


The documentation for this class was generated from the following file: