pub enum AppError {
Usage(String),
Violations {
count: usize,
},
ManifestMissing(Utf8PathBuf),
ManifestInvalid(String),
Marker(MarkerError),
Debt(DebtError),
Refused(String),
Git {
message: String,
code: u8,
},
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.
Debt(DebtError)
The instance’s debt file cannot be trusted, or a debt verb was asked for a state it refuses.
Refused(String)
The install or upgrade refused to touch the target as found, and the target was left (or restored) unchanged.
Git
A tracked-upstream lookup failed. The code is the sysexit the failure
class maps to, chosen where the git adapter is called.
Fields
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()