Skip to main content

Module error

Module error 

Source
Expand description

Shared error types for grit-lib.

Library code uses Error (a thiserror enum) so callers can match on specific failure modes. The binary wraps these with anyhow for human- readable top-level reporting.

Library guide: errors

use grit_lib::error::Error;
let _ = Error::Message("example".into());

Enums§

ApplyError
Unified diff / patch application errors.
AttrPathspecError
Why a :(attr:...) pathspec clause was rejected.
AuthFailure
Why an HTTP remote refused access (Error::Auth).
BadNumericSource
Why a Git config numeric value was rejected (git config int strict parsing).
ConfigError
Configuration parse and validation failures.
DiffPathError
Path lookup failures while formatting a diff.
Error
The top-level error type for all grit-lib operations.
FilterError
Clean/smudge filter and EOL conversion failures.
FilterPhase
Which filter hook failed.
GitDirPathOperation
Git-directory filesystem operation that failed on a single path.
MidxError
A fatal multi-pack-index condition (Git die() after error: lines).
OverwriteReason
Why a tree transition would overwrite existing worktree content.
PathOutsideRepoError
Path outside the repository during pathspec or transport resolution.
PathspecFromFileParseError
--pathspec-from-file / --pathspec-file-nul parse failure.
PathspecResolveError
Failure while resolving argv and --pathspec-from-file pathspecs against a work tree.
RefLockError
Reference lock failures while creating or updating a ref.
RemoteUnreadableReason
Why a remote could not be read or written (Error::RemoteUnreadable).
SparseCheckoutWarning
Sparse-checkout cone pattern parse warnings (non-fatal).
WorktreeOperation
The command a dirty worktree blocked (Error::DirtyWorktree).
WorktreePathOperation
Worktree filesystem operation that failed on a single path.

Type Aliases§

Result
Convenience alias for Result<T, Error>.