1#ifndef SOURCEMETA_CORE_OPTIONS_ERROR_H_
2#define SOURCEMETA_CORE_OPTIONS_ERROR_H_
4#ifndef SOURCEMETA_CORE_OPTIONS_EXPORT
5#include <sourcemeta/core/options_export.h>
8#include <sourcemeta/core/error.h>
13namespace sourcemeta::core {
15SOURCEMETA_CORE_ERROR_WARNINGS_PUSH
35 [[nodiscard]]
auto option() const noexcept -> std::string_view {
53 [[nodiscard]]
auto option() const noexcept -> std::string_view {
71 [[nodiscard]]
auto option() const noexcept -> std::string_view {
79SOURCEMETA_CORE_ERROR_WARNINGS_POP
auto message() const noexcept -> StaticString
Definition error_base.h:78
Error(const StaticString message) noexcept
Construct the error given its message.
Definition error_base.h:84
auto option() const noexcept -> std::string_view
The offending option.
Definition options_error.h:53
OptionsUnknownOptionError(const std::string_view option)
Construct the error given the offending option.
Definition options_error.h:31
auto option() const noexcept -> std::string_view
The offending option.
Definition options_error.h:71
OptionsMissingOptionValueError(const std::string_view option)
Construct the error given the offending option.
Definition options_error.h:67
OptionsUnexpectedValueFlagError(const std::string_view option)
Construct the error given the offending option.
Definition options_error.h:49
auto option() const noexcept -> std::string_view
The offending option.
Definition options_error.h:35
OptionsError(const StaticString message) noexcept
Construct the error given a message.
Definition options_error.h:22
Definition text_static_string.h:20