[][src]Enum jmespatch::RuntimeError

pub enum RuntimeError {
    InvalidSlice,
    TooManyArguments {
        expected: usize,
        actual: usize,
    },
    NotEnoughArguments {
        expected: usize,
        actual: usize,
    },
    UnknownFunction(String),
    InvalidType {
        expected: String,
        actual: String,
        position: usize,
    },
    InvalidReturnType {
        expected: String,
        actual: String,
        position: usize,
        invocation: usize,
    },
}

Runtime JMESPath error

Variants

InvalidSlice

Encountered when a slice expression uses a step of 0

TooManyArguments

Encountered when too many arguments are provided to a function.

Fields of TooManyArguments

expected: usize

Expeced number of arguments.

actual: usize

Provided number of arguments.

NotEnoughArguments

Encountered when too few arguments are provided to a function.

Fields of NotEnoughArguments

expected: usize

Expeced number of arguments.

actual: usize

Provided number of arguments.

UnknownFunction(String)

Encountered when an unknown function is called.

InvalidType

Encountered when a type of variable given to a function is invalid.

Fields of InvalidType

expected: String

Expected type.

actual: String

Provided type.

position: usize

Argument position when calling the function.

InvalidReturnType

Encountered when an expression reference returns an invalid type.

Fields of InvalidReturnType

expected: String

Expected return type.

actual: String

Actual return type.

position: usize

Argument position from which the expression reference was invoked.

invocation: usize

Which invocation iteration of the expression reference failed.

Trait Implementations

impl Clone for RuntimeError[src]

impl Debug for RuntimeError[src]

impl Display for RuntimeError[src]

impl PartialEq<RuntimeError> for RuntimeError[src]

impl StructuralPartialEq for RuntimeError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.