kaycxx-cli
C++ CLI library
Loading...
Searching...
No Matches
parse_error.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 Klaus Reimer <k@ailis.de>
2// SPDX-License-Identifier: MIT
3
9#pragma once
10
11#include <stdexcept>
12#include <string_view>
13
14namespace kaycxx::cli {
15
19class parse_error : public std::runtime_error {
20public:
26 explicit parse_error(std::string_view message);
27};
28
29} // namespace kaycxx::cli
Handle for a registered option.
Definition option_handle.hpp:25
Error thrown when command line arguments cannot be parsed.
Definition parse_error.hpp:19
parse_error(std::string_view message)
Creates a parse error.