OMNeT++ Simulation Library  6.0.3
cDeleteModuleException Class Reference

#include <cexception.h>

Description

Thrown from deleteModule() when the active activity() module is about to be deleted, in order to exit that module immediately.

Inheritance diagram for cDeleteModuleException:
cException

Public Member Functions

 cDeleteModuleException (cModule *toDelete)
 
 cDeleteModuleException (const cDeleteModuleException &e)=default
 
virtual cDeleteModuleExceptiondup () const override
 
virtual cModulegetModuleToDelete () const
 
virtual bool isError () const override
 
- Public Member Functions inherited from cException
 cException (ErrorCodeInt errcode,...)
 
 cException (const char *msg,...)
 
 cException (const cObject *where, ErrorCodeInt errcode,...)
 
 cException (const cObject *where, const char *msg,...)
 
 cException (const cException &)=default
 
virtual ~cException () throw ()
 
virtual void setMessage (const char *txt)
 
virtual void prependMessage (const char *txt)
 
virtual int getErrorCode () const
 
virtual const char * what () const override throw ()
 
virtual std::string getFormattedMessage () const
 
virtual int getSimulationStage () const
 
virtual eventnumber_t getEventNumber () const
 
virtual simtime_t getSimtime () const
 
virtual bool hasContext () const
 
virtual const char * getContextClassName () const
 
virtual const char * getContextFullPath () const
 
virtual int getContextComponentId () const
 
virtual int getContextComponentKind () const
 

Additional Inherited Members

- Protected Member Functions inherited from cException
void init (const cObject *obj, ErrorCode errorcode, const std::string &msg)
 

Constructor & Destructor Documentation

◆ cDeleteModuleException() [1/2]

cDeleteModuleException ( cModule toDelete)
inline

Default ctor.

◆ cDeleteModuleException() [2/2]

Copy constructor. We unfortunately need to copy exception objects when handing them back from an activity() method.

Member Function Documentation

◆ dup()

virtual cDeleteModuleException* dup ( ) const
inlineoverridevirtual

Creates and returns an exact copy of this object. We unfortunately need to copy exception objects when handing them back from an activity() method.

Reimplemented from cException.

◆ getModuleToDelete()

virtual cModule* getModuleToDelete ( ) const
inlinevirtual

Returns the module to delete.

◆ isError()

virtual bool isError ( ) const
inlineoverridevirtual

This exception type does not represent an error condition.

Reimplemented from cException.


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