Go to the documentation of this file.
47 _what =
"GenericError";
50 _what =
"InternalError";
53 _what =
"BadAllocation";
59 _what =
"ArgumentError";
62 _what =
"InitializationError";
68 _what =
"AssertionFail";
74 _what =
"UnknownType";
89 ss <<
"[" <<
_what <<
"]: " << details;
103 const char*
what() const noexcept
105 return _what.c_str();
@ InitializationError
Initialization error, raised when initialization routines fail.
@ BadAllocation
Allocation error, raised when an allocation fails.
Exception(const Exception::Type type, T details) noexcept
Construct a new Exception object.
Definition: Exception.hpp:86
Exception::Type type() const noexcept
Retrieve exception type.
Definition: Exception.hpp:113
@ MpiError
MPI error, raised when MPI communication fails.
@ IOError
In/out error, raised when input or output routines fail.
Descriptor object for exceptions.
Definition: Exception.hpp:17
@ AssertionFail
Assertion failure, raised when an assertion fails.
std::string _what
String form description of the exception.
Definition: Exception.hpp:120
@ OutOfRange
Out of range error, raised when out of bound memory accesses occur.
Exception(const Exception::Type type) noexcept
Construct a new Exception object.
Definition: Exception.hpp:41
const char * what() const noexcept
Retrieve string form description of the exception.
Definition: Exception.hpp:103
@ ArgumentError
Argument error, raised when a function is invoked with an invalid argument.
@ InternalError
Internal error, raised when internal inconsistencies occur.
@ GenericError
Generic error.
Type
Exception types.
Definition: Exception.hpp:23
Exception::Type _type
Type of the exception.
Definition: Exception.hpp:119
~Exception() noexcept
Destroy the Exception object.
Definition: Exception.hpp:96