5#include "errors/detail/interface.hpp"
11struct source_location;
38 virtual const char *
what() const noexcept = 0;
78static_assert(std::is_abstract<
error>());
This is the abstract class for all interface type. Disable copy and move operations.
Definition interface.hpp:15
Smart pointer to errors::error with some utility member functions.
Definition error_ptr.hpp:13
Interface representing an error.
Definition error.hpp:20
virtual const char * what() const noexcept=0
Get error message.
virtual std::optional< source_location > location() const noexcept=0
Get the source location of this error, if any.
virtual const error_ptr & cause() const &noexcept=0
Get cause of this error, if any.
The source location.
Definition source_location.hpp:46