#include <cexception.h>
Inheritance diagram for cRuntimeError:
For example, cSimpleModule::scheduleAt() throws this exception when the specified simulation time is in the past, or the message pointer is NULL.
Public Member Functions | |
cRuntimeError (int errcode,...) | |
cRuntimeError (const char *msg,...) | |
cRuntimeError (const cObject *where, int errcode,...) | |
cRuntimeError (const cObject *where, const char *msg,...) |
|
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. |
|
To be called like printf(). The error code is set to eCUSTOM. |
|
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. The 1st arg is the object where the error occurred: its class and object name will be prepended to the message like this: "(cArray)arr". |
|
To be called like printf(). The error code is set to eCUSTOM. The 1st arg is the object where the error occurred: its class and object name will be prepended to the message like this: "(cArray)arr". |