6#include "errors/impl/error_without_cause.hpp"
54 const char *
what() const noexcept
override
61 }
catch (
const std::exception &e) {
64 return "Unknown exception";
72static_assert(!std::is_abstract<exception_error>());
std::optional< source_location > location() const noexcept override
Get the source location of this error, if any.
Definition base_error.hpp:28
A base error class.
Definition error_without_cause.hpp:18
An error that has an exception.
Definition exception_error.hpp:18
exception_error(source_location location)
Create an exception error from the current exception.
Definition exception_error.hpp:42
exception_error(std::exception_ptr exception, source_location location)
Create an exception error from an exception pointer.
Definition exception_error.hpp:31
std::exception_ptr exception_ptr
The exception pointer.
Definition exception_error.hpp:70
const char * what() const noexcept override
Get the exception message.
Definition exception_error.hpp:54
The source location.
Definition source_location.hpp:46