Casadi exception class. More...
#include <casadi_exception.hpp>
Public Member Functions | |
CasadiException () | |
Default constructor. | |
CasadiException (const std::string &msg) | |
Form message string. | |
CasadiException & | operator<< (const std::string &msg) |
Append a message. | |
CasadiException & | operator<< (const std::exception &ex) |
Append an exception. | |
virtual const char * | what () const throw () |
Display error. | |
~CasadiException () throw () | |
Destructor. | |
Protected Attributes | |
std::string | msg_ |
Casadi exception class.
throw CasadiException("This is a nasty error");
try { throw CasadiException("This is a nasty error"); catch (CasadiException &e) { throw CasadiException("Serious error.") << e; }
Definition at line 50 of file casadi_exception.hpp.
CasADi::CasadiException::CasadiException | ( | ) | [inline] |
Default constructor.
Definition at line 53 of file casadi_exception.hpp.
CasADi::CasadiException::CasadiException | ( | const std::string & | msg | ) | [inline, explicit] |
Form message string.
Definition at line 57 of file casadi_exception.hpp.
CasADi::CasadiException::~CasadiException | ( | ) | throw () [inline] |
Destructor.
Definition at line 60 of file casadi_exception.hpp.
CasadiException& CasADi::CasadiException::operator<< | ( | const std::string & | msg | ) | [inline] |
Append a message.
Definition at line 68 of file casadi_exception.hpp.
CasadiException& CasADi::CasadiException::operator<< | ( | const std::exception & | ex | ) | [inline] |
Append an exception.
Definition at line 74 of file casadi_exception.hpp.
virtual const char* CasADi::CasadiException::what | ( | ) | const throw () [inline, virtual] |
Display error.
Definition at line 63 of file casadi_exception.hpp.
std::string CasADi::CasadiException::msg_ [protected] |
Definition at line 81 of file casadi_exception.hpp.