Thrown when the simulation is completed. More...
#include <cexception.h>
Public Member Functions | |
cTerminationException (OppErrorCode errcode,...) | |
cTerminationException (const char *msg,...) | |
cTerminationException (const cTerminationException &e) | |
virtual cTerminationException * | dup () const |
virtual bool | isError () const |
Thrown when the simulation is completed.
For example, cSimpleModule::endSimulation() throws this exception. Statistics object may also throw this exception to signal that accuracy of simulation results has reached the desired level.
cTerminationException::cTerminationException | ( | OppErrorCode | errcode, | |
... | ||||
) |
Error is identified by an error code, and the message comes from a string table.
The error string may expect printf-like arguments (s, d) which also have to be passed to the constructor.
cTerminationException::cTerminationException | ( | const char * | msg, | |
... | ||||
) |
To be called like printf().
The error code is set to eCUSTOM.
virtual cTerminationException* cTerminationException::dup | ( | ) | const [inline, virtual] |
Virtual copy constructor.
We unfortunately need to copy exception objects when handing them back from an activity().
Reimplemented from cException.