pub enum VcsError {
Show 14 variants
Git(Box<Error>),
ObjectNotFound(String),
ReferenceNotFound(String),
GitCommand {
context: String,
source: Error,
},
GitCommandFailed {
stderr: String,
},
Utf8 {
context: String,
source: FromUtf8Error,
},
BareRepo(String),
Index(String),
Stash(String),
Remote(String),
Bisect(String),
Submodule(String),
Note(String),
StatusParse(String),
}Expand description
Error type for all lattice-vcs operations.
Variants§
Git(Box<Error>)
An error from the underlying gix library.
Boxed to avoid large-Err on the hot path.
ObjectNotFound(String)
A git object could not be resolved.
ReferenceNotFound(String)
A reference could not be resolved.
GitCommand
Git command execution failed to start.
GitCommandFailed
Git command exited with non-zero status.
Utf8
UTF-8 conversion failed for git output.
BareRepo(String)
Operation attempted on a bare repository where a working tree is required.
Index(String)
Index (staging) operation failed.
Stash(String)
Stash operation failed.
Remote(String)
Remote management operation failed.
Bisect(String)
Bisect operation failed.
Submodule(String)
Submodule operation failed.
Note(String)
Notes operation failed (MG.37).
StatusParse(String)
A working-tree status entry could not be parsed.
Trait Implementations§
Source§impl Error for VcsError
impl Error for VcsError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for VcsError
impl !UnwindSafe for VcsError
impl Freeze for VcsError
impl Send for VcsError
impl Sync for VcsError
impl Unpin for VcsError
impl UnsafeUnpin for VcsError
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
Mutably borrows from an owned value. Read more
§impl<T> ErrorExt for T
impl<T> ErrorExt for T
§fn and_raise<T>(self, context: T) -> Exn<T>
fn and_raise<T>(self, context: T) -> Exn<T>
Raise this error as a child of a new exception with the given context error. Read more
§fn raise_erased(self) -> Exnwhere
Self: Sized,
fn raise_erased(self) -> Exnwhere
Self: Sized,
Raise this error as a new exception, with type erasure.
§fn raise_all<T, I>(self, sources: I) -> Exn<Self>where
Self: Sized,
T: Error + Send + Sync + 'static,
I: IntoIterator,
<I as IntoIterator>::Item: Into<Exn<T>>,
fn raise_all<T, I>(self, sources: I) -> Exn<Self>where
Self: Sized,
T: Error + Send + Sync + 'static,
I: IntoIterator,
<I as IntoIterator>::Item: Into<Exn<T>>,
Raise this error as a new exception, with
sources as causes.