Enum cel_interpreter::ExecutionError 
source · pub enum ExecutionError {
    InvalidArgumentCount {
        expected: usize,
        actual: usize,
    },
    UnsupportedTargetType {
        target: Value,
    },
    NotSupportedAsMethod {
        method: String,
        target: Value,
    },
    UnsupportedKeyType(Value),
    UnexpectedType {
        got: String,
        want: String,
    },
    NoSuchKey(Arc<String>),
    UndeclaredReference(Arc<String>),
    MissingArgumentOrTarget,
    ValuesNotComparable(Value, Value),
    FunctionError {
        function: String,
        message: String,
    },
}Variants§
InvalidArgumentCount
UnsupportedTargetType
NotSupportedAsMethod
UnsupportedKeyType(Value)
Indicates that the script attempted to use a value as a key in a map, but the type of the value was not supported as a key.
UnexpectedType
NoSuchKey(Arc<String>)
Indicates that the script attempted to reference a key on a type that was missing the requested key.
UndeclaredReference(Arc<String>)
Indicates that the script attempted to reference an undeclared variable method, or function.
MissingArgumentOrTarget
Indicates that a function expected to be called as a method, or to be called with at least one parameter.
ValuesNotComparable(Value, Value)
Indicates that a comparison could not be performed.
FunctionError
Indicates that a function had an error during execution.
Implementations§
source§impl ExecutionError
 
impl ExecutionError
pub fn no_such_key(name: &str) -> Self
pub fn undeclared_reference(name: &str) -> Self
pub fn invalid_argument_count(expected: usize, actual: usize) -> Self
pub fn function_error<E: ToString>(function: &str, error: E) -> Self
pub fn unsupported_target_type(target: Value) -> Self
pub fn not_supported_as_method(method: &str, target: Value) -> Self
pub fn unsupported_key_type(value: Value) -> Self
pub fn missing_argument_or_target() -> Self
Trait Implementations§
source§impl Clone for ExecutionError
 
impl Clone for ExecutionError
source§fn clone(&self) -> ExecutionError
 
fn clone(&self) -> ExecutionError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresource§impl Debug for ExecutionError
 
impl Debug for ExecutionError
source§impl Display for ExecutionError
 
impl Display for ExecutionError
source§impl Error for ExecutionError
 
impl Error for ExecutionError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
 
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ExecutionError> for ResolveResult
 
impl From<ExecutionError> for ResolveResult
source§fn from(value: ExecutionError) -> Self
 
fn from(value: ExecutionError) -> Self
Converts to this type from the input type.
source§impl PartialEq for ExecutionError
 
impl PartialEq for ExecutionError
source§fn eq(&self, other: &ExecutionError) -> bool
 
fn eq(&self, other: &ExecutionError) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ExecutionError
Auto Trait Implementations§
impl Freeze for ExecutionError
impl RefUnwindSafe for ExecutionError
impl !Send for ExecutionError
impl !Sync for ExecutionError
impl Unpin for ExecutionError
impl UnwindSafe for ExecutionError
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