pub enum GitError {
Show 31 variants
InvalidObjectType(String),
InvalidBlobObject(String),
InvalidTreeObject,
InvalidTreeItem(String),
EmptyTreeItems(String),
InvalidSignatureType(String),
InvalidCommitObject,
InvalidCommit(String),
InvalidTagObject(String),
InvalidNoteObject(String),
InvalidIdxFile(String),
InvalidPackFile(String),
InvalidPackHeader(String),
InvalidIndexFile(String),
InvalidIndexHeader(String),
InvalidArgument(String),
IOError(Error),
InvalidHashValue(String),
DeltaObjectError(String),
UnCompletedPackObject(String),
InvalidObjectInfo(String),
NotFoundHashValue(String),
EncodeObjectError(String),
ConversionError(String),
InvalidPathError(String),
PackEncodeError(String),
ObjectNotFound(String),
RepoNotFound,
UnAuthorized(String),
NetworkError(String),
CustomError(String),
}Expand description
Unified error enumeration for the Git-Internal library.
- Used across object parsing, pack encode/decode, index, caching and streams.
- Implements
std::error::Errorviathiserror.
Variants§
InvalidObjectType(String)
Invalid or unsupported git object type name.
InvalidBlobObject(String)
Malformed or unsupported blob object encoding.
InvalidTreeObject
Malformed tree object.
InvalidTreeItem(String)
Invalid tree entry (mode/name/hash).
EmptyTreeItems(String)
Tree contains no entries.
InvalidSignatureType(String)
Invalid commit signature type.
InvalidCommitObject
Malformed commit object.
InvalidCommit(String)
Commit parse or validation failed.
InvalidTagObject(String)
Malformed tag object.
InvalidNoteObject(String)
Malformed note object.
InvalidIdxFile(String)
Malformed or unsupported index (.idx) file.
InvalidPackFile(String)
Malformed or unsupported pack file.
InvalidPackHeader(String)
Invalid pack header magic or version.
InvalidIndexFile(String)
Malformed or unsupported git index file.
InvalidIndexHeader(String)
Invalid git index header.
InvalidArgument(String)
Invalid CLI or function argument.
IOError(Error)
I/O error from underlying reader or writer.
InvalidHashValue(String)
Invalid SHA1 hash formatting or value.
DeltaObjectError(String)
Delta object reconstruction error.
UnCompletedPackObject(String)
Object not fully populated for packing.
InvalidObjectInfo(String)
Invalid decoded object info.
NotFoundHashValue(String)
Hash not found in current file context.
EncodeObjectError(String)
Failed to encode object to bytes.
ConversionError(String)
Text encoding or UTF-8 conversion error.
InvalidPathError(String)
Invalid path when locating parent tree.
PackEncodeError(String)
Failed to encode pack entries.
ObjectNotFound(String)
Object missing from caches or storage.
RepoNotFound
Repository not found.
UnAuthorized(String)
Unauthorized access.
NetworkError(String)
Network communication error.
CustomError(String)
Generic custom error for miscellaneous failures.
Trait Implementations§
Source§impl Error for GitError
impl Error for GitError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for GitError
impl !RefUnwindSafe for GitError
impl Send for GitError
impl Sync for GitError
impl Unpin for GitError
impl !UnwindSafe for GitError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more