Enum git2::ErrorCode [−][src]
pub enum ErrorCode {
Show 26 variants
GenericError,
NotFound,
Exists,
Ambiguous,
BufSize,
User,
BareRepo,
UnbornBranch,
Unmerged,
NotFastForward,
InvalidSpec,
Conflict,
Locked,
Modified,
Auth,
Certificate,
Applied,
Peel,
Eof,
Invalid,
Uncommitted,
Directory,
MergeConflict,
HashsumMismatch,
IndexDirty,
ApplyFail,
}Expand description
An enumeration of possible errors that can happen when working with a git repository.
Variants
Generic error
Requested object could not be found
Object exists preventing operation
More than one object matches
Output buffer too short to hold data
User-generated error
Operation not allowed on bare repository
HEAD refers to branch with no commits
Merge in progress prevented operation
Reference was not fast-forwardable
Name/ref spec was not in a valid format
Checkout conflicts prevented operation
Lock file prevented operation
Reference value does not match expected
Authentication error
Server certificate is invalid
Patch/merge has already been applied
The requested peel operation is not possible
Unexpected EOF
Invalid operation or input
Uncommitted changes in index prevented operation
Operation was not valid for a directory
A merge conflict exists and cannot continue
Hashsum mismatch in object
Unsaved changes in the index would be overwritten
Patch application failed
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations
Mutably borrows from an owned value. Read more