Enum git_workarea::GitError [−][src]
#[non_exhaustive]
pub enum GitError {
Subcommand {
subcommand: &'static str,
source: Error,
},
Git {
msg: Cow<'static, str>,
source: Option<Error>,
},
InvalidRef {
ref_: Cow<'static, str>,
},
}
Expand description
Errors which may occur when working with workareas.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Subcommand
Fields
subcommand: &'static str
The git subcommand which failed.
source: Error
The root cause of the failure.
Command preparation failure.
Git
Fields
A git error occurred.
InvalidRef
An invalid ref was used.
Implementations
Convenience method for constructing an error for a git subcommand failure.