cexception.h Source File¶
|
API
|
cexception.h
326// The debugger needs to check if the exception that is being thrown is a termination exception or not,
327// because the user mostly doesn't want to break into the debugger when the simulation terminates.
328// Unfortunately, the std::type_info structure can't easily be used in the breakpoint conditional expression,
454 virtual cDeleteModuleException *dup() const override {return new cDeleteModuleException(*this);}
494 virtual cStackCleanupException *dup() const override {return new cStackCleanupException(*this);}
cDeleteModuleException(cModule *toDelete)
Definition cexception.h:442
virtual cDeleteModuleException * dup() const override
Definition cexception.h:454
virtual cModule * getModuleToDelete() const
Definition cexception.h:459
virtual bool isError() const override
Definition cexception.h:464
cDeleteModuleException(const cDeleteModuleException &e)=default
cException(ErrorCodeInt errcode,...)
virtual int getSimulationStage() const
Definition cexception.h:220
virtual const char * getContextClassName() const
Definition cexception.h:243
virtual void prependMessage(const char *fmt,...)
cException(const cException &)=default
virtual void appendMessage(const char *fmt,...)
virtual int getContextComponentKind() const
Definition cexception.h:263
virtual std::string getFormattedMessage() const
virtual eventnumber_t getEventNumber() const
Definition cexception.h:225
virtual const char * getContextFullPath() const
Definition cexception.h:249
void init(const cObject *obj, ErrorCode errorcode, const std::string &msg)
virtual int getContextComponentId() const
Definition cexception.h:257
cObject is a lightweight class which serves as the root of the OMNeT++ class hierarchy....
Definition cobject.h:93
Thrown when the simulation kernel or other components detect a runtime error.
Definition cexception.h:343
cRuntimeError(const std::exception &e, const char *location)
cRuntimeError(ErrorCodeInt errcode,...)
cRuntimeError(const cRuntimeError &e)
Definition cexception.h:418
virtual cStackCleanupException * dup() const override
Definition cexception.h:494
cStackCleanupException(const cStackCleanupException &e)=default
cStackCleanupException()
Definition cexception.h:482
virtual bool isError() const override
Definition cexception.h:499
virtual cTerminationException * dup() const override
Definition cexception.h:317
cTerminationException(ErrorCodeInt errcode,...)
cTerminationException(const cTerminationException &e)=default
virtual bool isError() const override
Definition cexception.h:323
int64_t eventnumber_t
Sequence number of events during the simulation. Events are numbered from one. (Event number zero is ...
Definition simkerneldefs.h:78
Generated on for API by