rbtools.commands.base.errors¶
Error types for commands.
Added in version 5.0.
Exceptions
A general error for a command. |
|
|
An error indicating a command is ready to exit. |
Exception thrown when we need to restart the command initialization. |
|
An error indicating a command failed to parse some information. |
- exception rbtools.commands.base.errors.CommandError[source]¶
Bases:
ExceptionA general error for a command.
- __firstlineno__ = 34¶
- __static_attributes__ = ()¶
- exception rbtools.commands.base.errors.CommandExit(exit_code: int = 0)[source]¶
Bases:
ExceptionAn error indicating a command is ready to exit.
- __firstlineno__ = 10¶
- __init__(exit_code: int = 0) None[source]¶
Initialize the error.
- Parameters:
exit_code (
int) – The exit code.
- __static_attributes__ = ('exit_code',)¶
- exception rbtools.commands.base.errors.NeedsReinitialize[source]¶
Bases:
ExceptionException thrown when we need to restart the command initialization.
Added in version 5.1.
- __firstlineno__ = 42¶
- __static_attributes__ = ()¶
- exception rbtools.commands.base.errors.ParseError[source]¶
Bases:
CommandErrorAn error indicating a command failed to parse some information.
- __firstlineno__ = 38¶
- __static_attributes__ = ()¶