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.
Referenced by casadi::accepted_iterate(), casadi::KnitroInterface::callback(), casadi::Nlpsol::callback(), casadi::AlpaqaProblem::eval_f(), casadi::BonminUserClass::eval_f(), casadi::IpoptUserClass::eval_f(), casadi::AlpaqaProblem::eval_f_grad_f(), casadi::AlpaqaProblem::eval_g(), casadi::BonminUserClass::eval_g(), casadi::IpoptUserClass::eval_g(), casadi::BonminUserClass::eval_grad_f(), casadi::IpoptUserClass::eval_grad_f(), casadi::AlpaqaProblem::eval_grad_L(), casadi::BonminUserClass::eval_h(), casadi::IpoptUserClass::eval_h(), casadi::AlpaqaProblem::eval_hess_L(), casadi::AlpaqaProblem::eval_hess_L_prod(), casadi::AlpaqaProblem::eval_hess_ψ(), casadi::AlpaqaProblem::eval_hess_ψ_prod(), casadi::AlpaqaProblem::eval_jac_g(), casadi::BonminUserClass::eval_jac_g(), casadi::IpoptUserClass::eval_jac_g(), casadi::AlpaqaProblem::eval_ψ(), casadi::AlpaqaProblem::eval_ψ_grad_ψ(), casadi::XFunction< DerivedType, MatType, NodeType >::factory(), casadi::PluginInterface< Derived >::has_plugin(), casadi::BonminInterface::intermediate_callback(), casadi::IpoptInterface::intermediate_callback(), casadi::Function::operator()(), and casadi::SnoptInterface::userfun().
|
protected |
Definition at line 95 of file exception.hpp.