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
InvalidArgumentCount
Callable invoked with argument count that does not match defined count.
Fields of InvalidArgumentCount
defined: usize | |
given: usize |
ObjectHasNoProperty(String)
Tried to access object property that does not exist.
ObjectHasNoMethod(String)
Tried to access object method that does not exist.
ObjectPropertyIsNotMethod(String)
Tried to access object property but it was a method.
ObjectMethodIsNotProperty(String)
Tried to access object method but it was a property.
ObjectMethodArgumentMismatch
Tried to call object method with wrong argument count.
Fields of ObjectMethodArgumentMismatch
name: String | |
defined: u16 | |
given: u16 |
ImpossibleCast
Value casting error.
Fields of ImpossibleCast
target: CastTarget | |
reason: CastError |
Methods
impl RuntimeError
[src]
fn at(self, stack_trace: Vec<TraceEntry>) -> TracedRuntimeError
Trait Implementations
impl Clone for RuntimeError
[src]
fn clone(&self) -> RuntimeError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more