3#include "errors/error.hpp"
4#include "errors/source_location.hpp"
28 std::optional<source_location>
location() const noexcept
override
36static_assert(std::is_abstract<base_error>());
Interface representing an error.
Definition error.hpp:20
A base error class.
Definition base_error.hpp:16
std::optional< source_location > location() const noexcept override
Get the source location of this error, if any.
Definition base_error.hpp:28
base_error(source_location loc)
Constructor with source_location.
Definition base_error.hpp:23
The source location.
Definition source_location.hpp:46