|
cli11
|
An option was configured in a way that cannot work. More...
Public Member Functions | |
| incorrect_construction_t (std::string msg) | |
| Constructs the error with the default exit code. | |
| Public Member Functions inherited from cli::detail::error_mixin_t< incorrect_construction_t, construction_error_t > | |
| error_mixin_t (std::string msg, exit_codes_t exit_code) | |
Constructs the error, naming it from derived_t. | |
| error_mixin_t (std::string msg, int exit_code) | |
Constructs the error, naming it from derived_t. | |
| Public Member Functions inherited from cli::detail::error_mixin_t< construction_error_t, error_t > | |
| error_mixin_t (std::string msg, exit_codes_t exit_code) | |
Constructs the error, naming it from derived_t. | |
| error_mixin_t (std::string msg, int exit_code) | |
Constructs the error, naming it from derived_t. | |
| Public Member Functions inherited from cli::error_t | |
| auto | get_exit_code () const -> int |
| Returns the process exit code associated with this error. | |
| auto | get_name () const -> std::string |
| Returns the short name of this error type. | |
| error_t (std::string name, std::string msg, int exit_code=static_cast< int >(exit_codes_t::base_class)) | |
| Constructs an error with an explicit numeric exit code. | |
| error_t (std::string name, std::string msg, exit_codes_t exit_code) | |
| Constructs an error with an exit code drawn from exit_codes_t. | |
Static Public Member Functions | |
| static auto | positional_flag (const std::string &name) -> incorrect_construction_t |
| A flag was declared as a positional. | |
| static auto | set_0_opt (const std::string &name) -> incorrect_construction_t |
| An option was told to expect zero values. | |
| static auto | set_flag (const std::string &name) -> incorrect_construction_t |
| A flag was given an expected value count. | |
| static auto | change_not_vector (const std::string &name) -> incorrect_construction_t |
| A non-vector option was given a variable value count. | |
| static auto | after_multi_opt (const std::string &name) -> incorrect_construction_t |
| The expected count was changed after the multi-option policy. | |
| static auto | missing_option (const std::string &name) -> incorrect_construction_t |
| A named option does not exist. | |
| static auto | multi_option_policy (const std::string &name) -> incorrect_construction_t |
| A multi-option policy was applied where it cannot work. | |
Static Public Attributes | |
| static constexpr std::string_view | error_type_name = "incorrect_construction" |
| Short name reported by error_t::get_name. | |
| Static Public Attributes inherited from cli::construction_error_t | |
| static constexpr std::string_view | error_type_name = "construction_error" |
| Short name reported by error_t::get_name. | |
Additional Inherited Members | |
| Protected Member Functions inherited from cli::detail::error_mixin_t< incorrect_construction_t, construction_error_t > | |
| error_mixin_t (std::string ename, std::string msg, int exit_code) | |
| Forwards an explicit type name, for further derivation. | |
| error_mixin_t (std::string ename, std::string msg, exit_codes_t exit_code) | |
| Forwards an explicit type name, for further derivation. | |
| Protected Member Functions inherited from cli::detail::error_mixin_t< construction_error_t, error_t > | |
| error_mixin_t (std::string ename, std::string msg, int exit_code) | |
| Forwards an explicit type name, for further derivation. | |
| error_mixin_t (std::string ename, std::string msg, exit_codes_t exit_code) | |
| Forwards an explicit type name, for further derivation. | |
An option was configured in a way that cannot work.
|
inlineexplicit |
Constructs the error with the default exit code.
| msg | Human-readable description. |
|
inlinestaticnodiscard |
The expected count was changed after the multi-option policy.
| name | The offending option name. |
|
inlinestaticnodiscard |
A non-vector option was given a variable value count.
| name | The offending option name. |
|
inlinestaticnodiscard |
A named option does not exist.
| name | The name that was looked up. |
|
inlinestaticnodiscard |
A multi-option policy was applied where it cannot work.
| name | The offending option name. |
|
inlinestaticnodiscard |
A flag was declared as a positional.
| name | The offending option name. |
|
inlinestaticnodiscard |
An option was told to expect zero values.
| name | The offending option name. |
|
inlinestaticnodiscard |
A flag was given an expected value count.
| name | The offending option name. |