git.delta.rocks / jrsonnet / refs/commits / e53de5dd7f69

difftreelog

source

crates/jsonnet-evaluator/src/error.rs484 Bsourcehistory
1use crate::ValType;2use jsonnet_parser::LocExpr;34#[derive(Debug)]5pub enum Error {6	VariableIsNotDefined(String),7	TypeMismatch(&'static str, Vec<ValType>, ValType),8	NoSuchField(String),910	RuntimeError(String),11}1213#[derive(Clone, Debug)]14pub struct StackTraceElement(pub LocExpr, pub String);15#[derive(Debug)]16pub struct StackTrace(pub Vec<StackTraceElement>);1718#[derive(Debug)]19pub struct LocError(pub Error, pub StackTrace);20pub type Result<V> = std::result::Result<V, LocError>;