mirror of
https://github.com/LORDBABUINO/stealth.git
synced 2026-06-09 22:13:29 -07:00
15 lines
499 B
Rust
15 lines
499 B
Rust
use thiserror::Error;
|
|
|
|
/// Errors from the analysis pipeline.
|
|
#[derive(Debug, Error, Clone, PartialEq, Eq)]
|
|
pub enum AnalysisError {
|
|
#[error("descriptor input cannot be empty")]
|
|
EmptyDescriptor,
|
|
#[error("descriptor `{descriptor}` failed normalization: {message}")]
|
|
DescriptorNormalization { descriptor: String, message: String },
|
|
#[error("environment unavailable: {0}")]
|
|
EnvironmentUnavailable(String),
|
|
#[error("analysis execution failed: {0}")]
|
|
Execution(String),
|
|
}
|