Sharg 1.1.2-rc.1
The argument parser for bio-c++ tools.
Loading...
Searching...
No Matches
exceptions.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2006-2024, Knut Reinert & Freie Universität Berlin
2// SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik
3// SPDX-License-Identifier: BSD-3-Clause
4
10#pragma once
11
12#include <stdexcept>
13
14#include <sharg/platform.hpp>
15
16namespace sharg
17{
40{
41public:
49 {}
50};
51
60{
61public:
70};
71
80{
81public:
90};
91
100{
101public:
110};
111
120{
121public:
130};
131
151
160{
161public:
170};
171
180{
181public:
190};
191
207{
208public:
216 {}
217};
218
219} // namespace sharg
Parser exception that is thrown whenever there is an design error directed at the developer of the ap...
Definition exceptions.hpp:207
design_error(std::string const &s)
The constructor.
Definition exceptions.hpp:215
Parser exception thrown when a non-list option is declared multiple times.
Definition exceptions.hpp:140
option_declared_multiple_times(std::string const &s)
The constructor.
Definition exceptions.hpp:148
Parser exception that is thrown whenever there is an error while parsing the command line arguments.
Definition exceptions.hpp:40
parser_error(std::string const &s)
The constructor.
Definition exceptions.hpp:48
Parser exception thrown when a required option is missing.
Definition exceptions.hpp:120
required_option_missing(std::string const &s)
The constructor.
Definition exceptions.hpp:128
Parser exception thrown when too few arguments are provided.
Definition exceptions.hpp:100
too_few_arguments(std::string const &s)
The constructor.
Definition exceptions.hpp:108
Parser exception thrown when too many arguments are provided.
Definition exceptions.hpp:80
too_many_arguments(std::string const &s)
The constructor.
Definition exceptions.hpp:88
Parser exception thrown when encountering unknown option.
Definition exceptions.hpp:60
unknown_option(std::string const &s)
The constructor.
Definition exceptions.hpp:68
Parser exception thrown when an incorrect argument is given as (positional) option value.
Definition exceptions.hpp:160
user_input_error(std::string const &s)
The constructor.
Definition exceptions.hpp:168
Parser exception thrown when an argument could not be casted to the according type.
Definition exceptions.hpp:180
validation_error(std::string const &s)
The constructor.
Definition exceptions.hpp:188
Provides platform and dependency checks.
Hide me