arg_router
1.4.0
C++ command line argument parsing and routing
|
#include <arg_router/exception.hpp>
Inherits std::exception.
Public Member Functions | |
multi_lang_exception (error_code ec) noexcept | |
multi_lang_exception (error_code ec, const parsing::token_type &token) | |
multi_lang_exception (error_code ec, vector< parsing::token_type > tokens) noexcept | |
error_code | ec () const noexcept |
const vector< parsing::token_type > & | tokens () const noexcept |
Used internally by the library (and node developers) to indicate failure.
Rather than carry an error message, this exception type carries an error code that then maps to a translated message at runtime. The translated message is then put into a parse_exception and re-thrown in the root, so the user should never this exception type.
Definition at line 110 of file exception.hpp.
|
inlineexplicitnoexcept |
|
inline |
Token constructor.
ec | Error code |
token | Token that caused the error |
Definition at line 124 of file exception.hpp.
|
inlinenoexcept |
Token list constructor.
ec | Error code |
tokens | Tokens that caused the error |
Definition at line 133 of file exception.hpp.
|
inlinenoexcept |
Definition at line 140 of file exception.hpp.
|
inlinenoexcept |
Definition at line 144 of file exception.hpp.