Enum jmespath::RuntimeError [] [src]

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

Encountered when a slice expression uses a step of 0

Encountered when too many arguments are provided to a function.

Fields of TooManyArguments

Expeced number of arguments.

Provided number of arguments.

Encountered when too few arguments are provided to a function.

Fields of NotEnoughArguments

Expeced number of arguments.

Provided number of arguments.

Encountered when an unknown function is called.

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

Fields of InvalidType

Expected type.

Provided type.

Argument position when calling the function.

Encountered when an expression reference returns an invalid type.

Fields of InvalidReturnType

Expected return type.

Actual return type.

Argument position from which the expression reference was invoked.

Which invocation iteration of the expression reference failed.

Trait Implementations

impl Clone for RuntimeError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for RuntimeError
[src]

Formats the value using the given formatter.

impl PartialEq for RuntimeError
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Display for RuntimeError
[src]

Formats the value using the given formatter. Read more