pub enum EvalError {
Show 16 variants
Singleton {
operation: String,
count: usize,
},
Type {
operation: String,
found: String,
},
UnknownFunction {
name: String,
},
Arity {
function: String,
expected: &'static str,
found: usize,
},
UnknownElement {
type_name: String,
element: String,
},
ContextType {
named: String,
context: String,
},
UnknownType {
name: String,
},
UnknownVariable {
name: String,
},
NoSeam {
function: &'static str,
},
Seam {
function: &'static str,
source: SeamError,
},
Regex {
pattern: String,
source: Error,
},
Arithmetic {
source: ArithmeticError,
},
Document {
element: String,
reason: String,
},
Modifier {
url: String,
},
Unordered {
operation: String,
},
Argument {
function: String,
reason: String,
},
}Expand description
Why an evaluation ended without a result.
Variants§
Singleton
An operation that takes one item met several (N1 §4.5).
Type
An operation met an item of a type it does not take.
UnknownFunction
A function N1 and FHIR R4 do not define.
Arity
A function called with the wrong number of arguments.
Fields
UnknownElement
A member no type of the input defines (N1 §3).
ContextType
The expression starts with a type name that is not the context’s type (N1 §3).
UnknownType
A type specifier that names no type (N1 §6.3.1).
UnknownVariable
An environment variable the environment does not define (N1 §9).
NoSeam
A function whose seam the environment does not supply.
Seam
A seam failed.
Regex
A regular expression that does not compile.
Arithmetic
Date and time arithmetic outside its rules (N1 §6.7).
Fields
source: ArithmeticErrorThe failure.
Document
The document contradicts the model, as a string where an object belongs.
Modifier
An element carries a modifier extension checkModifiers() does not
admit (FHIR R4 §2.9.1.5).
Unordered
An order-dependent operation over a collection whose order N1 §3.1 leaves undefined, refused in the strict ordering mode.
Argument
An argument outside what the function admits.
Trait Implementations§
Source§impl Error for EvalError
impl Error for EvalError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for EvalError
impl !UnwindSafe for EvalError
impl Freeze for EvalError
impl Send for EvalError
impl Sync for EvalError
impl Unpin for EvalError
impl UnsafeUnpin 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
WrappingSpan::make_wrapped to wrap an AST node in a span.