Exceptions - libvcs.exc¶
Exceptions for libvcs.
-
exception libvcs.exc.CommandError¶
Bases:
LibVCSExceptionRaised on non-zero return codes.
-
exception libvcs.exc.CommandTimeoutError¶
Bases:
CommandErrorCommandError raised when a subprocess exceeds its wall-clock timeout.
Carries the deadline used when the timeout fired so callers and human readers see the duration in the rendered message rather than the misleading
"Command failed with code None: ..."produced by the bareCommandErrortemplate (the child is not necessarily reaped before the exception is raised, leavingreturncodeNone).Examples
>>> err = CommandTimeoutError( ... output='partial output', ... cmd='git fetch', ... timeout=2.5, ... ) >>> print(str(err)) Command timed out after 2.5s: git fetch partial output
-
exception libvcs.exc.InvalidVCS¶
Bases:
LibVCSExceptionInvalid VCS.