![]() |
aGrUM 3.1.1
a C++ library for (probabilistic) graphical models
|
Base class for all aGrUM's exceptions. More...
#include <exceptions.h>
Public Member Functions | |
| GUM_NODISCARD const char * | what () const noexcept override |
| GUM_NODISCARD std::string | errorContent () const |
| Returns the message content. | |
| GUM_NODISCARD std::string | errorType () const |
| Returns the error type. | |
| GUM_NODISCARD std::string | errorCallStack () const |
| Returns the error call stack. | |
Class constructors & destructors | |
| Exception (std::string_view aMsg="", std::string_view aType="Generic error") | |
| Exception (const Exception &e) | |
| ~Exception () override=default | |
Protected Attributes | |
| std::string | msg_ |
| std::string | type_ |
| std::string | callstack_ |
| std::string | what_ |
Base class for all aGrUM's exceptions.
Definition at line 122 of file exceptions.h.
|
explicit |
| gum::Exception::Exception | ( | const Exception & | e | ) |
|
overridedefault |
References errorCallStack(), errorContent(), errorType(), and GUM_NODISCARD.
| GUM_NODISCARD INLINE std::string gum::Exception::errorCallStack | ( | ) | const |
Returns the error call stack.
Definition at line 56 of file exceptions_inl.h.
References callstack_, and GUM_NODISCARD.
Referenced by ~Exception().
| GUM_NODISCARD INLINE std::string gum::Exception::errorContent | ( | ) | const |
Returns the message content.
Definition at line 52 of file exceptions_inl.h.
References GUM_NODISCARD, and msg_.
Referenced by ~Exception(), gum::prm::o3prmr::O3prmrInterpreter::checkObserve(), gum::prm::o3prmr::O3prmrInterpreter::checkQuery(), gum::prm::o3prmr::O3prmrInterpreter::checkSemantic(), gum::prm::o3prmr::O3prmrInterpreter::checkUnobserve(), gum::prm::o3prmr::O3prmrInterpreter::import(), gum::prm::o3prmr::O3prmrInterpreter::interpret(), and gum::prm::o3prm::O3prmReader< GUM_SCALAR >::readFile().
| GUM_NODISCARD INLINE std::string gum::Exception::errorType | ( | ) | const |
Returns the error type.
Definition at line 54 of file exceptions_inl.h.
References GUM_NODISCARD, and type_.
Referenced by ~Exception().
|
overridenoexcept |
|
protected |
Definition at line 126 of file exceptions.h.
Referenced by errorCallStack().
|
protected |
Definition at line 124 of file exceptions.h.
Referenced by errorContent().
|
protected |
Definition at line 125 of file exceptions.h.
Referenced by errorType().
|
protected |
Definition at line 127 of file exceptions.h.
Referenced by what().