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
| ||||||
ObjectHasNoProperty | Tried to access object property that does not exist. | ||||||
ObjectHasNoMethod | Tried to access object method that does not exist. | ||||||
ObjectPropertyIsNotMethod | Tried to access object property but it was a method. | ||||||
ObjectMethodIsNotProperty | Tried to access object method but it was a property. | ||||||
ObjectMethodArgumentMismatch | Tried to call object method with wrong argument count. Fields
| ||||||
ImpossibleCast | Value casting error. Fields
|