Spicy
Public Member Functions | List of all members
hilti::rt::Exception Class Reference

#include <exception.h>

Inheritance diagram for hilti::rt::Exception:

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
 
Exceptionoperator= (const Exception &)=default
 
Exceptionoperator= (Exception &&) noexcept=default
 
auto description () const
 
auto location () const
 
auto backtrace () const
 

Detailed Description

HILTI's base exception type. All HILTI-side runtime exceptions are derived from this. Instantiate specialized derived classes, not the base class.

Constructor & Destructor Documentation

◆ Exception() [1/2]

Exception::Exception ( const std::string &  desc)
Parameters
descmessage describing the situation

◆ Exception() [2/2]

Exception::Exception ( std::string_view  desc,
std::string_view  location 
)
Parameters
descmessage describing the situation
locationstring indicating the location of the operation that failed

Member Function Documentation

◆ backtrace()

auto hilti::rt::Exception::backtrace ( ) const
inline

Returns a stack backtrace captured at the time the exception was thrown.

◆ description()

auto hilti::rt::Exception::description ( ) const
inline

Returns the message associated with the exception.

◆ location()

auto hilti::rt::Exception::location ( ) const
inline

Returns the location associated with the exception.


The documentation for this class was generated from the following files: