Class RuntimeException

Defined in Program listing for file kernel/src/utils/SiconosException/RuntimeException.hpp

class RuntimeException : public SiconosException

Runtime exceptions.

RuntimeException can be throws for example when a pointer is used but not allocated This exception can be caught by “catch(RuntimeException)” or “catch(SiconosException)”

Public Functions

RuntimeException()

constructor

RuntimeException(const std::string &report)

constructor with a report

Parameters
  • report: exception description

~RuntimeException()

destructor

Public Static Functions

static void selfThrow()

static function which throw a RuntimeException

static void selfThrow(const std::string &report)

static function which throw a RuntimeException with a report

Parameters
  • report: exception description