#[non_exhaustive]pub enum Error {
Show 16 variants
NotARepository(String),
ForbiddenBareRepository(String),
DubiousOwnership(String),
UnsupportedRepositoryFormatVersion(u32),
UnsupportedRepositoryExtension(String),
InvalidObjectId(String),
ObjectNotFound(String),
CorruptObject(String),
UnknownObjectType(String),
ObjectHeaderTooLong {
oid: String,
},
Io(Error),
Zlib(String),
IndexError(String),
InvalidRef(String),
PathError(String),
ConfigError(String),
}Expand description
The top-level error type for all Gust library operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NotARepository(String)
A repository could not be found or is structurally invalid.
ForbiddenBareRepository(String)
A bare repository was found but access is forbidden by safe.bareRepository.
DubiousOwnership(String)
The repository is owned by a different user (safe.directory).
UnsupportedRepositoryFormatVersion(u32)
Repository format version is not supported by this implementation.
UnsupportedRepositoryExtension(String)
Repository declares an unsupported extension.
InvalidObjectId(String)
A supplied object ID string was not valid hex or the wrong length.
ObjectNotFound(String)
The requested object does not exist in the object store.
CorruptObject(String)
An object’s stored data is corrupt or malformed.
UnknownObjectType(String)
An unsupported or unknown object type was encountered.
ObjectHeaderTooLong
Loose object header type field exceeds Git’s 32-byte limit.
Io(Error)
An I/O error from the underlying filesystem.
Zlib(String)
A zlib compression or decompression failure.
IndexError(String)
The index file is missing, truncated, or has a bad header.
InvalidRef(String)
A reference name or value is invalid.
PathError(String)
A general path-related error (invalid UTF-8, out-of-bounds, etc.).
ConfigError(String)
A configuration file parsing or access error.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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
use the Display impl or to_string()