OMNeT++ NEDXML 6.1
Discrete Event Simulation Library
NedException Class Reference

Description

Low-level routines throw an exception instead of calling NedErrorStore->add().

Inherits runtime_error.

Public Member Functions

 NedException (const char *messagefmt,...)
 
 NedException (ASTNode *context, const char *messagefmt,...)
 
virtual ~NedException () throw ()
 
virtual const char * what () const override throw ()
 

Protected Attributes

std::string msg
 

Constructor & Destructor Documentation

◆ NedException() [1/2]

NedException ( const char *  messagefmt,
  ... 
)

The error message can be generated in a printf-like manner.

◆ NedException() [2/2]

NedException ( ASTNode context,
const char *  messagefmt,
  ... 
)

The error message can be generated in a printf-like manner.

◆ ~NedException()

virtual ~NedException ( )
throw (
)
inlinevirtual

Empty destructor with throw clause for gcc.

Member Function Documentation

◆ what()

virtual const char* what ( ) const
throw (
)
inlineoverridevirtual

Returns the text of the error. Redefined from std::exception.

Member Data Documentation

◆ msg

std::string msg
protected

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