pub enum TelError {
ParseError {
errors: Vec<TelParseError>,
},
ConversionError {
message: String,
from: String,
to: String,
},
NotIndexable {
message: String,
subject: String,
},
NoAttribute {
message: String,
subject: String,
attribute: String,
},
InvalidSelector {
message: String,
},
UnsupportedOperation {
operation: String,
message: String,
},
FunctionNotFound(String),
IndexOutOfBounds {
index: usize,
max: usize,
},
InvalidIndex {
subject: String,
message: String,
},
InvalidArgument {
index: usize,
method_name: String,
expected: Option<String>,
actual: Option<String>,
},
MissingArgument {
index: usize,
method_name: String,
},
}Variants§
ParseError
Fields
§
errors: Vec<TelParseError>ConversionError
NotIndexable
NoAttribute
InvalidSelector
UnsupportedOperation
FunctionNotFound(String)
IndexOutOfBounds
InvalidIndex
InvalidArgument
MissingArgument
Implementations§
Source§impl TelError
impl TelError
pub fn new_binary_unsupported( op: BinaryOpType, a: Description, b: Description, ) -> TelError
pub fn new_unary_unsupported(op: UnaryOpType, a: Description) -> TelError
pub fn get_code(&self) -> u32
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TelError
impl<'de> Deserialize<'de> for TelError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for TelError
Auto Trait Implementations§
impl Freeze for TelError
impl RefUnwindSafe for TelError
impl Send for TelError
impl Sync for TelError
impl Unpin for TelError
impl UnwindSafe for TelError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more