![]() |
Spicy
|
#include <exception.h>
Public Member Functions | |
| Exception (std::string_view desc) | |
| Exception (std::string_view desc, std::string_view location) | |
| Exception (const Exception &other) | |
| Exception (Exception &&) noexcept=default | |
| Exception & | operator= (const Exception &other)=default |
| Exception & | operator= (Exception &&) noexcept=default |
| const auto & | description () const |
| const auto & | location () const |
| const Backtrace * | backtrace () const |
Protected Types | |
| enum | Internal |
Protected Member Functions | |
| Exception (Internal, const char *type, std::string_view desc) | |
| Exception (Internal, const char *type, std::string_view desc, std::string_view location) | |
HILTI's base exception type. All HILTI-side runtime exceptions are derived from this. Instantiate specialized derived classes, not the base class.
|
inline |
| desc | message describing the situation |
|
inline |
| 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, if available. Returns null if unavailable.
|
inline |
Returns the message associated with the exception.
|
inline |
Returns the location associated with the exception.