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

Go to the source code of this file

class SiconosException
#include <SiconosException.hpp>

General Siconos Exception.

SiconosException should not be throws directly; prefer to use an inherit class This exception can be caught by “catch(SiconosException)”

Subclassed by RuntimeException, SiconosMatrixException, SiconosMemoryException, SiconosSharedLibraryException, SiconosVectorException

Public Functions

SiconosException()

constructor

SiconosException(const std::string &report)

constructor with a report

Parameters
  • report: exception description

virtual ~SiconosException()

destructor

std::string report() const

return the report of the exception

Return
std::string report : exception description

Protected Functions

ACCEPT_SERIALIZATION(SiconosException)

serialization hooks

Protected Attributes

std::string _reportMsg

report message which describe the exception