pub enum TaintError {
Blocked {
path: String,
taint: String,
reason: String,
},
NotAuthorized {
path: String,
agent_id: String,
},
InsufficientConfidence {
path: String,
taint: String,
required: f64,
got: f64,
},
NotFound(String),
AlreadyResolved(String),
Storage(String),
InvalidTaint(String),
}Variants§
Blocked
Pre-commit hook rejected a write because the path carries a
Block-effect taint.
NotAuthorized
Pre-commit hook rejected a write because the path is
quarantined and the acting agent is not in the quarantine’s
authorized_agents list.
InsufficientConfidence
Pre-commit hook rejected a write because the path carries a
Review-effect taint and the commit’s confidence is below
the required threshold (default 0.9).
NotFound(String)
A taint / untaint / resolve_taint call referred to an
id that does not exist.
AlreadyResolved(String)
Attempted to resolve a taint that is already resolved.
Storage(String)
Storage-backend error; the message is opaque to the taint crate (the repository wrapper surfaces the real error).
InvalidTaint(String)
A proposed taint failed basic validation (empty path, empty name, unknown effect for the chosen kind, etc.).
Trait Implementations§
Source§impl Debug for TaintError
impl Debug for TaintError
Source§impl Display for TaintError
impl Display for TaintError
Source§impl Error for TaintError
impl Error for TaintError
1.30.0 · 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()