pub enum AppError {
Usage(String),
Violations {
count: usize,
},
ManifestMissing(Utf8PathBuf),
ManifestInvalid(String),
Marker(MarkerError),
Refused(String),
Io(Error),
Other(Error),
}Expand description
Every failure the binary can exit with.
Variants§
Usage(String)
Semantically invalid arguments clap cannot reject on shape alone.
Violations
A check ran to completion and found violations; the findings are already on stdout, so the process only carries the red exit.
ManifestMissing(Utf8PathBuf)
The target has no instance manifest where one is required.
ManifestInvalid(String)
The manifest exists but does not parse as a supported schema.
Marker(MarkerError)
The managed pre-commit block or its host file is malformed.
Refused(String)
The install or upgrade refused to touch the target as found, and the target was left (or restored) unchanged.
Io(Error)
Filesystem failure, classified by its I/O kind.
Other(Error)
Escape hatch for ad-hoc contexts at the binary boundary.
Implementations§
Trait Implementations§
Source§impl Error for AppError
impl Error for AppError
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()
Source§impl From<MarkerError> for AppError
impl From<MarkerError> for AppError
Source§fn from(source: MarkerError) -> Self
fn from(source: MarkerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for AppError
impl !UnwindSafe for AppError
impl Freeze for AppError
impl Send for AppError
impl Sync for AppError
impl Unpin for AppError
impl UnsafeUnpin for AppError
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