rbtools.clients.errors¶
Error definitions for SCMClient implementations.
Exceptions
An error for when amending a commit fails. |
|
An error for when authentication fails. |
|
The creation of a commit has failed or was aborted. |
|
An error for when there are no changed files. |
|
An error for when the specified revisions are invalid. |
|
An error for when merging two branches fails. |
|
An error for when software doesn't meet version requirements. |
|
An error for when command line options are used incorrectly. |
|
An error for when pushing a branch to upstream fails. |
|
|
One or more required dependencies are missing. |
|
An error indicating a specified SCMClient could not be found. |
A generic error from an SCM. |
|
An error for when too many revisions were specified. |
- exception rbtools.clients.errors.AmendError[source]¶
Bases:
ExceptionAn error for when amending a commit fails.
- __firstlineno__ = 32¶
- __static_attributes__ = ()¶
- exception rbtools.clients.errors.AuthenticationError[source]¶
Bases:
ExceptionAn error for when authentication fails.
- __firstlineno__ = 16¶
- __static_attributes__ = ()¶
- exception rbtools.clients.errors.CreateCommitError[source]¶
Bases:
ExceptionThe creation of a commit has failed or was aborted.
- __firstlineno__ = 20¶
- __static_attributes__ = ()¶
- exception rbtools.clients.errors.EmptyChangeError[source]¶
Bases:
ExceptionAn error for when there are no changed files.
- __annotations_cache__ = {}¶
- __firstlineno__ = 57¶
- __static_attributes__ = ()¶
- exception rbtools.clients.errors.InvalidRevisionSpecError[source]¶
Bases:
ExceptionAn error for when the specified revisions are invalid.
- __firstlineno__ = 40¶
- __static_attributes__ = ()¶
- exception rbtools.clients.errors.MergeError[source]¶
Bases:
ExceptionAn error for when merging two branches fails.
- __firstlineno__ = 24¶
- __static_attributes__ = ()¶
- exception rbtools.clients.errors.MinimumVersionError[source]¶
Bases:
ExceptionAn error for when software doesn’t meet version requirements.
- __firstlineno__ = 44¶
- __static_attributes__ = ()¶
- exception rbtools.clients.errors.OptionsCheckError[source]¶
Bases:
ExceptionAn error for when command line options are used incorrectly.
- __firstlineno__ = 36¶
- __static_attributes__ = ()¶
- exception rbtools.clients.errors.PushError[source]¶
Bases:
ExceptionAn error for when pushing a branch to upstream fails.
- __firstlineno__ = 28¶
- __static_attributes__ = ()¶
- exception rbtools.clients.errors.SCMClientDependencyError(missing_exes: MissingList = [], missing_modules: MissingList = [])[source]¶
Bases:
SCMErrorOne or more required dependencies are missing.
Added in version 4.0.
- missing_exes¶
A list of missing executable dependencies.
Each item can be a string representing the name of the tool, or a tuple of possible interchangeable names.
- Type:
- missing_modules¶
A list of missing Python module dependencies.
Each item can be a string representing the name of the module, or a tuple of possible interchangeable module names.
- Type:
- MissingItem: TypeAlias = str | tuple[str, ...]¶
A type alias for a missing dependency.
This can be a string naming the dependency, or a tuple of interchangeable dependencies.
- MissingList¶
A type alias for a list of missing dependencies.
- MissingOneOfDep¶
A type alias for a tuple of missing interchangeable dependencies.
Any item in the list would have satisfied the dependency check.
The tuple is presented in search order.
- __firstlineno__ = 66¶
- __init__(missing_exes: MissingList = [], missing_modules: MissingList = []) None[source]¶
Initialize the error.
- Parameters:
missing_exes (
list, optional) –A list of missing executable dependencies.
Each item can be a string representing the name of the tool, or a tuple of possible interchangeable names.
missing_modules (
list, optional) –A list of missing Python module dependencies.
Each item can be a string representing the name of the module, or a tuple of possible interchangeable module names.
- __static_attributes__ = ('missing_exes', 'missing_modules')¶
- exception rbtools.clients.errors.SCMClientNotFoundError(scmclient_id: str)[source]¶
Bases:
ExceptionAn error indicating a specified SCMClient could not be found.
Added in version 4.0.
- __annotations_cache__ = {}¶
- __firstlineno__ = 182¶
- __init__(scmclient_id: str) None[source]¶
Initialize the error.
- Parameters:
scmclient_id (
str) – The ID of the SCMClient that could not be found.
- __static_attributes__ = ('scmclient_id',)¶