pub enum RemediationError {
ScriptParse(String),
InvariantViolations(Vec<String>),
Sexpr(SExprError),
}Expand description
Errors that can prevent a remediation from applying.
Variants§
ScriptParse(String)
The script couldn’t be parsed (malformed, unknown op, bad arity).
The underlying string is the same one script::parse returned.
InvariantViolations(Vec<String>)
A post-state invariant check failed. Carries the human-readable violations so callers can report or gate.
Sexpr(SExprError)
Sexpr emission or parsing hiccup during provenance hashing. Shouldn’t occur for valid IR values but we surface it rather than panicking.
Trait Implementations§
Source§impl Debug for RemediationError
impl Debug for RemediationError
Source§impl Display for RemediationError
impl Display for RemediationError
Source§impl Error for RemediationError
impl Error for RemediationError
1.30.0 · 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<SExprError> for RemediationError
impl From<SExprError> for RemediationError
Source§fn from(e: SExprError) -> Self
fn from(e: SExprError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RemediationError
impl RefUnwindSafe for RemediationError
impl Send for RemediationError
impl Sync for RemediationError
impl Unpin for RemediationError
impl UnsafeUnpin for RemediationError
impl UnwindSafe for RemediationError
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