pub enum EvalError {
CycleDetected,
MissingRoot,
MissingNode(NodeId),
TypeError {
message: String,
span: Option<Span>,
file: Option<String>,
},
PatchError {
message: String,
span: Option<Span>,
file: Option<String>,
},
SecretLeak {
file: Option<String>,
},
ValidationFailed {
diagnostics: Vec<Diagnostic>,
},
BudgetExceeded {
kind: BudgetKind,
limit: u64,
span: Option<Span>,
file: Option<String>,
},
}Variants§
CycleDetected
MissingRoot
MissingNode(NodeId)
TypeError
PatchError
A patch application failure with its own stable code (E019): rename conflicts and invalid paths discovered at apply time. Missing remove/rename targets warn (W004) instead of failing.
SecretLeak
ValidationFailed
Schema validation failures (C-031, spec/validation.md) and constraint failures (C-034, spec/annotations.md): every violation diagnostic, collected in deterministic order. Strict mode returns these instead of a value tree; resilient mode keeps them as ordinary diagnostics alongside the tree.
Fields
§
diagnostics: Vec<Diagnostic>BudgetExceeded
Execution budget violations (C-037, spec/budgets.md): always fatal, in strict and resilient modes alike — budgets protect the process, not the document.
Implementations§
Trait Implementations§
Source§impl Error for EvalError
impl Error for EvalError
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()
Auto Trait Implementations§
impl Freeze for EvalError
impl RefUnwindSafe for EvalError
impl Send for EvalError
impl Sync for EvalError
impl Unpin for EvalError
impl UnsafeUnpin for EvalError
impl UnwindSafe for EvalError
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