sharg 1.0.0
THE argument parser for bio-c++ tools.
exceptions.hpp
Go to the documentation of this file.
1// --------------------------------------------------------------------------------------------------------
2// Copyright (c) 2006-2022, Knut Reinert & Freie Universität Berlin
3// Copyright (c) 2016-2022, Knut Reinert & MPI für molekulare Genetik
4// This file may be used, modified and/or redistributed under the terms of the 3-clause BSD-License
5// shipped with this file and also available at: https://github.com/seqan/sharg-parser/blob/main/LICENSE.md
6// --------------------------------------------------------------------------------------------------------
7
13#pragma once
14
15#include <stdexcept>
16
17#include <sharg/platform.hpp>
18
19namespace sharg
20{
43{
44public:
52 {}
53};
54
63{
64public:
72 {}
73};
74
83{
84public:
92 {}
93};
94
103{
104public:
112 {}
113};
114
123{
124public:
132 {}
133};
134
143{
144public:
152 {}
153};
154
163{
164public:
172 {}
173};
174
183{
184public:
192 {}
193};
194
210{
211public:
219 {}
220};
221
222} // namespace sharg
Parser exception that is thrown whenever there is an design error directed at the developer of the ap...
Definition: exceptions.hpp:210
design_error(std::string const &s)
The constructor.
Definition: exceptions.hpp:218
Parser exception thrown when a non-list option is declared multiple times.
Definition: exceptions.hpp:143
option_declared_multiple_times(std::string const &s)
The constructor.
Definition: exceptions.hpp:151
Parser exception that is thrown whenever there is an error while parsing the command line arguments.
Definition: exceptions.hpp:43
parser_error(std::string const &s)
The constructor.
Definition: exceptions.hpp:51
Parser exception thrown when a required option is missing.
Definition: exceptions.hpp:123
required_option_missing(std::string const &s)
The constructor.
Definition: exceptions.hpp:131
Parser exception thrown when too few arguments are provided.
Definition: exceptions.hpp:103
too_few_arguments(std::string const &s)
The constructor.
Definition: exceptions.hpp:111
Parser exception thrown when too many arguments are provided.
Definition: exceptions.hpp:83
too_many_arguments(std::string const &s)
The constructor.
Definition: exceptions.hpp:91
Parser exception thrown when encountering unknown option.
Definition: exceptions.hpp:63
unknown_option(std::string const &s)
The constructor.
Definition: exceptions.hpp:71
Parser exception thrown when an incorrect argument is given as (positional) option value.
Definition: exceptions.hpp:163
user_input_error(std::string const &s)
The constructor.
Definition: exceptions.hpp:171
Parser exception thrown when an argument could not be casted to the according type.
Definition: exceptions.hpp:183
validation_error(std::string const &s)
The constructor.
Definition: exceptions.hpp:191
Provides platform and dependency checks.