File kernel/src/utils/SiconosException/RuntimeException.hpp

Go to the source code of this file

class RuntimeException : public SiconosException
#include <RuntimeException.hpp>

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