Enum twig::error::RuntimeError [] [src]

pub enum RuntimeError {
    InvalidArgumentCount {
        defined: usize,
        given: usize,
    },
    ObjectHasNoProperty(String),
    ObjectHasNoMethod(String),
    ObjectPropertyIsNotMethod(String),
    ObjectMethodIsNotProperty(String),
    ObjectMethodArgumentMismatch {
        name: String,
        defined: u16,
        given: u16,
    },
    ImpossibleCast {
        target: CastTarget,
        reason: CastError,
    },
}

Runtime error message.

Variants

Callable invoked with argument count that does not match defined count.

Fields of InvalidArgumentCount

Tried to access object property that does not exist.

Tried to access object method that does not exist.

Tried to access object property but it was a method.

Tried to access object method but it was a property.

Tried to call object method with wrong argument count.

Fields of ObjectMethodArgumentMismatch

Value casting error.

Fields of ImpossibleCast

Methods

impl RuntimeError
[src]

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 Display for RuntimeError
[src]

Formats the value using the given formatter. Read more