|
cli11
|
An option, subcommand, or positional name was malformed. More...
Public Member Functions | |
| bad_name_string_t (std::string msg) | |
| Constructs the error with the default exit code. | |
| Public Member Functions inherited from cli::detail::error_mixin_t< bad_name_string_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 | one_char_name (const std::string &name) -> bad_name_string_t |
| A single-character name was not valid. | |
| static auto | missing_dash (const std::string &name) -> bad_name_string_t |
| A long name was given only one leading dash. | |
| static auto | bad_long_name (const std::string &name) -> bad_name_string_t |
| A long name contained invalid characters. | |
| static auto | bad_positional_name (const std::string &name) -> bad_name_string_t |
| A positional name contained invalid characters. | |
| static auto | reserved_name (const std::string &name) -> bad_name_string_t |
| A reserved name was used. | |
| static auto | multi_positional_names (const std::string &name) -> bad_name_string_t |
| More than one positional name was supplied. | |
Static Public Attributes | |
| static constexpr std::string_view | error_type_name = "bad_name_string" |
| 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< bad_name_string_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, subcommand, or positional name was malformed.
|
inlineexplicit |
Constructs the error with the default exit code.
| msg | Human-readable description. |
|
inlinestaticnodiscard |
A long name contained invalid characters.
| name | The offending name. |
|
inlinestaticnodiscard |
A positional name contained invalid characters.
| name | The offending name. |
|
inlinestaticnodiscard |
A long name was given only one leading dash.
| name | The offending name. |
|
inlinestaticnodiscard |
More than one positional name was supplied.
| name | The surplus name. |
|
inlinestaticnodiscard |
A single-character name was not valid.
| name | The offending name. |
|
inlinestaticnodiscard |
A reserved name was used.
| name | The offending name. |