3#include "errors/error_ptr.hpp"
4#include "errors/impl/base_error.hpp"
33static_assert(std::is_abstract<error_without_cause>());
Smart pointer to errors::error with some utility member functions.
Definition error_ptr.hpp:13
A base error class.
Definition base_error.hpp:16
base_error(source_location loc)
Constructor with source_location.
Definition base_error.hpp:23
A base error class.
Definition error_without_cause.hpp:18
const error_ptr & cause() const &noexcept override
Get cause of this error, if any.
Definition error_without_cause.hpp:22
error_ptr cause() &&noexcept override
Transfer the ownership of cause of this error, if any.
Definition error_without_cause.hpp:28