powercli.exceptions¶
Exceptions/Errors used by PowerCLI.
Module Contents¶
API¶
- exception powercli.exceptions.ConversionError¶
Bases:
ExceptionAn error that occurred while converting a value.
Initialization
Initialize self. See help(type(self)) for accurate signature.
- exception powercli.exceptions.MissingValueError¶
Bases:
ExceptionA flag expected a value that was not provided by the user.
Initialization
Initialize self. See help(type(self)) for accurate signature.
- flag: powercli.args.Flag[Any, Any, Any]¶
None
The flag that expected a value.
- exception powercli.exceptions.MissingPositionalError¶
Bases:
ExceptionThe user did not provide a required positional.
Initialization
Initialize self. See help(type(self)) for accurate signature.
- positional: powercli.args.Positional[Any, Any, Any]¶
None
The positional that was missing.
- exception powercli.exceptions.TooFewPositionalsError¶
Bases:
ExceptionThe user did not provide enough positionals.
Initialization
Initialize self. See help(type(self)) for accurate signature.
- positional: powercli.args.VariadicPositional[Any, Any, Any]¶
None
The variadic positional that expects values.
- exception powercli.exceptions.MissingFlagError¶
Bases:
ExceptionThe user did not provide a required flag.
Initialization
Initialize self. See help(type(self)) for accurate signature.
- flag: powercli.args.Flag[Any, Any, Any]¶
None
The flag that was missing.
- exception powercli.exceptions.MissingDependencyError¶
Bases:
ExceptionA dependency of an argument is missing.
Initialization
Initialize self. See help(type(self)) for accurate signature.
- arg: powercli.args.Argument¶
None
The argument with a dependency.