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>
12namespace sourcemeta::core {
18#pragma warning(disable : 4251 4275)
23class SOURCEMETA_CORE_OPTIONS_EXPORT
OptionsError :
public std::exception {
29 explicit OptionsError(std::string_view message) =
delete;
31 [[nodiscard]]
auto what() const noexcept -> const
char *
override {
32 return this->message_;
47 [[nodiscard]]
auto option() const noexcept -> std::string_view {
63 [[nodiscard]]
auto option() const noexcept -> std::string_view {
79 [[nodiscard]]
auto option() const noexcept -> std::string_view {
88#pragma warning(default : 4251 4275)
auto option() const noexcept -> std::string_view
The offending option.
Definition options_error.h:63
OptionsUnknownOptionError(const std::string_view option)
Construct the error given the offending option.
Definition options_error.h:44
auto option() const noexcept -> std::string_view
The offending option.
Definition options_error.h:79
OptionsError(const char *message)
Construct the error given a message.
Definition options_error.h:26
OptionsMissingOptionValueError(const std::string_view option)
Construct the error given the offending option.
Definition options_error.h:76
OptionsUnexpectedValueFlagError(const std::string_view option)
Construct the error given the offending option.
Definition options_error.h:60
auto option() const noexcept -> std::string_view
The offending option.
Definition options_error.h:47