dulwich.errors module¶
Dulwich-related exception classes and utility functions.
-
exception
dulwich.errors.ApplyDeltaError(*args, **kwargs)¶ Bases:
ExceptionIndicates that applying a delta failed.
-
exception
dulwich.errors.ChecksumMismatch(expected, got, extra=None)¶ Bases:
ExceptionA checksum didn’t match the expected contents.
-
exception
dulwich.errors.CommitError¶ Bases:
ExceptionAn error occurred while performing a commit.
-
exception
dulwich.errors.EmptyFileException¶ Bases:
dulwich.errors.FileFormatExceptionAn unexpectedly empty file was encountered.
-
exception
dulwich.errors.FileFormatException¶ Bases:
ExceptionBase class for exceptions relating to reading git file formats.
-
exception
dulwich.errors.GitProtocolError(*args, **kwargs)¶ Bases:
ExceptionGit protocol exception.
-
exception
dulwich.errors.HangupException¶ Bases:
dulwich.errors.GitProtocolErrorHangup exception.
-
exception
dulwich.errors.HookError¶ Bases:
ExceptionAn error occurred while executing a hook.
-
exception
dulwich.errors.MissingCommitError(sha, *args, **kwargs)¶ Bases:
ExceptionIndicates that a commit was not found in the repository
-
exception
dulwich.errors.NoIndexPresent¶ Bases:
ExceptionNo index is present.
-
exception
dulwich.errors.NotBlobError(sha, *args, **kwargs)¶ Bases:
dulwich.errors.WrongObjectExceptionIndicates that the sha requested does not point to a blob.
-
type_name= 'blob'¶
-
-
exception
dulwich.errors.NotCommitError(sha, *args, **kwargs)¶ Bases:
dulwich.errors.WrongObjectExceptionIndicates that the sha requested does not point to a commit.
-
type_name= 'commit'¶
-
-
exception
dulwich.errors.NotGitRepository(*args, **kwargs)¶ Bases:
ExceptionIndicates that no Git repository was found.
-
exception
dulwich.errors.NotTagError(sha, *args, **kwargs)¶ Bases:
dulwich.errors.WrongObjectExceptionIndicates that the sha requested does not point to a tag.
-
type_name= 'tag'¶
-
-
exception
dulwich.errors.NotTreeError(sha, *args, **kwargs)¶ Bases:
dulwich.errors.WrongObjectExceptionIndicates that the sha requested does not point to a tree.
-
type_name= 'tree'¶
-
-
exception
dulwich.errors.ObjectFormatException¶ Bases:
dulwich.errors.FileFormatExceptionIndicates an error parsing an object.
-
exception
dulwich.errors.ObjectMissing(sha, *args, **kwargs)¶ Bases:
ExceptionIndicates that a requested object is missing.
-
exception
dulwich.errors.PackedRefsException¶ Bases:
dulwich.errors.FileFormatExceptionIndicates an error parsing a packed-refs file.
-
exception
dulwich.errors.RefFormatError¶ Bases:
ExceptionIndicates an invalid ref name.
-
exception
dulwich.errors.SendPackError(*args, **kwargs)¶ Bases:
dulwich.errors.GitProtocolErrorAn error occurred during send_pack.
-
exception
dulwich.errors.UnexpectedCommandError(command)¶ Bases:
dulwich.errors.GitProtocolErrorUnexpected command received in a proto line.
-
exception
dulwich.errors.UpdateRefsError(*args, **kwargs)¶ Bases:
dulwich.errors.GitProtocolErrorThe server reported errors updating refs.
-
exception
dulwich.errors.WrongObjectException(sha, *args, **kwargs)¶ Bases:
ExceptionBaseclass for all the _ is not a _ exceptions on objects.
Do not instantiate directly.
Subclasses should define a type_name attribute that indicates what was expected if they were raised.