Go to the documentation of this file.
30 #ifndef EXOTICA_CORE_EXCEPTION_H_
31 #define EXOTICA_CORE_EXCEPTION_H_
36 #define ThrowPretty(m) \
38 std::stringstream ss; \
40 throw exotica::Exception(ss.str(), __FILE__, __PRETTY_FUNCTION__, __LINE__); \
42 #define ThrowNamed(m) \
44 std::stringstream ss; \
46 throw exotica::Exception(ss.str(), __FILE__, __PRETTY_FUNCTION__, __LINE__, this->object_name_); \
63 explicit Exception(
const std::string &msg,
const char *file,
const char *func,
int line,
const std::string &
object = std::string());
64 virtual const char *
what() const noexcept;
83 #endif // EXOTICA_CORE_EXCEPTION_H_
static ReportingType reporting_
Definition: exception.h:69
virtual const char * what() const noexcept
Definition: exception.h:51
ReportingType
Definition: exception.h:54
Exception(const std::string &msg, const char *file, const char *func, int line, const std::string &object=std::string())
@ LineNumber
Definition: exception.h:59
@ Message
Definition: exception.h:56
Definition: cartpole_dynamics_solver.h:38
Definition: exception.h:77
@ ObjectName
Definition: exception.h:60
std::string msg_
Definition: exception.h:66
@ FileName
Definition: exception.h:57
@ FunctionName
Definition: exception.h:58
Definition: autodiff_scalar.h:820