pub enum CliError {
Io(Error),
NoSourceFiles(PathBuf),
NoRecognizedFiles,
Analysis(Error),
InvalidFingerprint(String),
CheckFailed,
}Expand description
Errors returned by CLI command functions.
Variants§
Io(Error)
An I/O error (exit code 2).
NoSourceFiles(PathBuf)
No source files found (exit code 2).
NoRecognizedFiles
No recognized source files for language auto-detection (exit code 2).
Analysis(Error)
Analysis pipeline failed (exit code 2).
InvalidFingerprint(String)
Invalid fingerprint string (exit code 2).
CheckFailed
Check thresholds exceeded (exit code 1).
Implementations§
Trait Implementations§
Source§impl Error for CliError
impl Error for CliError
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 Freeze for CliError
impl !RefUnwindSafe for CliError
impl Send for CliError
impl Sync for CliError
impl Unpin for CliError
impl UnsafeUnpin for CliError
impl !UnwindSafe for CliError
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