#[non_exhaustive]pub enum ErrorKind {
InvalidOperator(Cow<'static, str>),
InvalidArguments(Cow<'static, str>),
VariableNotFound(Cow<'static, str>),
InvalidContextLevel(isize),
TypeError(Cow<'static, str>),
ArithmeticError(Cow<'static, str>),
Custom(CustomErrorSource),
ParseError(Cow<'static, str>),
Thrown(OwnedDataValue),
FormatError(Cow<'static, str>),
IndexOutOfBounds {
index: isize,
length: usize,
},
ConfigurationError(Cow<'static, str>),
}Expand description
Discriminant for crate::Error. Stable variant tags are exposed via
crate::Error::tag for matching across releases.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidOperator(Cow<'static, str>)
Invalid operator name
InvalidArguments(Cow<'static, str>)
Invalid arguments for an operator
VariableNotFound(Cow<'static, str>)
Variable not found in context
InvalidContextLevel(isize)
Invalid context level access
TypeError(Cow<'static, str>)
Type conversion/coercion error
ArithmeticError(Cow<'static, str>)
Arithmetic error (division by zero, overflow, etc.)
Custom(CustomErrorSource)
Custom error for extensions. Carries the underlying typed error so
callers can walk the source chain via std::error::Error::source.
Constructed via crate::Error::custom_message (string-only) or
crate::Error::wrap (any std::error::Error + Send + Sync + 'static).
ParseError(Cow<'static, str>)
JSON parsing/serialization error
Thrown(OwnedDataValue)
Thrown error from throw operator
FormatError(Cow<'static, str>)
Invalid format string or pattern
IndexOutOfBounds
Index out of bounds for array operations
ConfigurationError(Cow<'static, str>)
Invalid operator configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorKind
impl !RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl !UnwindSafe for ErrorKind
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