Exceptions - libvcs.exc¶

Exceptions for libvcs.

exception libvcs.exc.LibVCSException[source]¶

Bases: Exception

Standard exception raised by libvcs.

exception libvcs.exc.CommandError(output, returncode=None, cmd=None)[source]¶

Bases: LibVCSException

Raised on non-zero return codes.

Parameters:
Return type:

None

message = 'Command failed with code {returncode}: {cmd}'¶
exception libvcs.exc.CommandTimeoutError(output, returncode=None, cmd=None)[source]¶

Bases: CommandError

CommandError which gets raised when a subprocess exceeds its timeout.

Parameters:
Return type:

None

exception libvcs.exc.InvalidVCS[source]¶

Bases: LibVCSException

Invalid VCS.