![]() |
Spicy
|
#include <exception.h>
Public Member Functions | |
Exception (const std::string &desc) | |
Exception (std::string_view desc, std::string_view location) | |
Exception (const Exception &)=default | |
Exception (Exception &&) noexcept=default | |
Exception & | operator= (const Exception &)=default |
Exception & | operator= (Exception &&) noexcept=default |
auto | description () const |
auto | location () const |
auto | backtrace () const |
HILTI's base exception type. All HILTI-side runtime exceptions are derived from this. Instantiate specialized derived classes, not the base class.
Exception::Exception | ( | const std::string & | desc | ) |
desc | message describing the situation |
Exception::Exception | ( | std::string_view | desc, |
std::string_view | location | ||
) |
desc | message describing the situation |
location | string indicating the location of the operation that failed |
|
inline |
Returns a stack backtrace captured at the time the exception was thrown.
|
inline |
Returns the message associated with the exception.
|
inline |
Returns the location associated with the exception.