Casadi exception class. More...
#include <exception.hpp>
\author Joel Andersson \date 2010 Example for simple exception throwing: \code throw CasadiException("This is a nasty error"); \endcode Example for exception chaining: \code try { throw CasadiException("This is a nasty error"); catch(CasadiException &e) { throw CasadiException("Serious error.") << e; } \endcode
Extra doc: https://github.com/casadi/casadi/wiki/L_7u
Definition at line 77 of file exception.hpp.
Public Member Functions | |
CasadiException () | |
Default constructor. More... | |
CasadiException (const std::string &msg) | |
Form message string. More... | |
~CasadiException () throw () | |
Destructor. More... | |
const char * | what () const override throw () |
Display error. More... | |
Protected Attributes | |
std::string | msg_ |
|
inline |
Definition at line 80 of file exception.hpp.
|
inlineexplicit |
Definition at line 84 of file exception.hpp.
|
inline |
Definition at line 87 of file exception.hpp.
|
inlineoverride |
Definition at line 90 of file exception.hpp.
|
protected |
Definition at line 95 of file exception.hpp.