Exceptions Module

Exceptions for custom input types / validators.

author:

Doug Skrypa

exception cli_command_parser.inputs.exceptions.InputValidationError[source]

Bases: CommandParserException, ValueError

Raised when a custom InputType’s conversion/validation fails

exception cli_command_parser.inputs.exceptions.InvalidChoiceError(invalid: Any, choices: Collection[Any], type_str: str = 'choice')[source]

Bases: InputValidationError

Error raised when a value that does not match one of the pre-defined choices was provided