NedException Class Reference

NEDXML API: NedException Class Reference
NEDXML API
NedException Class Reference

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 ()

Description

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

Constructor & Destructor Documentation

◆ NedException() [1/2]

NedException ( const char * messagefmt,
... )

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

References NedException().

Referenced by NedException(), NedException(), and ~NedException().

◆ NedException() [2/2]

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

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

References NedException().

◆ ~NedException()

virtual ~NedException ( )
throw ( )
inlinevirtual

Empty destructor with throw clause for gcc.

References NedException().

Member Function Documentation

◆ what()

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

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