arg_router
1.4.0
C++ command line argument parsing and routing
|
#include <arg_router/exception.hpp>
Inherits std::exception.
Public Member Functions | |
parse_exception (const string &message, const vector< parsing::token_type > &tokens={}) | |
parse_exception (const string &message, const parsing::token_type &token) | |
template<typename S > | |
parse_exception (utility::exception_formatter< S > cts, const vector< parsing::token_type > &tokens={}) | |
An exception that represents a parsing failure.
std::basic_string
in their constructor (e.g. std::logic_error
) do not have an allocator template parameter, we cannot use them even though they would be easier in this circumstance. Because of this we have to carry our own string member which may throw upon copying, which means that technically this exception type isn't std::exception
compatible as the copy constructor cannot be marked as nothrow
Definition at line 160 of file exception.hpp.
|
inlineexplicit |
Token list constructor.
message | Error message |
tokens | Tokens that caused the error |
Definition at line 168 of file exception.hpp.
|
inline |
Token constructor.
message | Error message |
token | Token that caused the error |
Definition at line 179 of file exception.hpp.
|
inline |
Formatter constructor.
S | Compile-time string type |
cts | Compile-time string instance |
tokens | Tokens to pass to the formatter's placeholders |
Definition at line 191 of file exception.hpp.