25class SOURCEMETA_BLAZE_CONFIGURATION_EXPORT ConfigurationParseError
26 :
public std::exception {
28 ConfigurationParseError(
const char *message,
29 sourcemeta::core::Pointer location)
30 : message_{message}, location_{std::move(location)} {}
31 ConfigurationParseError(std::string message,
32 sourcemeta::core::Pointer location) =
delete;
33 ConfigurationParseError(std::string &&message,
34 sourcemeta::core::Pointer location) =
delete;
35 ConfigurationParseError(std::string_view message,
36 sourcemeta::core::Pointer location) =
delete;
38 [[nodiscard]]
auto what()
const noexcept ->
const char *
override {
39 return this->message_;
42 [[nodiscard]]
auto location()
const noexcept ->
const auto & {
43 return this->location_;
48 sourcemeta::core::Pointer location_;