pub enum RibRuntimeError {
Show 13 variants
ArithmeticError {
message: String,
},
CastError {
from: CastFrom,
to: TypeHint,
},
ExhaustedIterator,
FieldNotFound {
field: String,
},
FunctionInvokeError {
function_name: String,
error: Box<dyn Error + Send + Sync>,
},
IndexOutOfBound {
index: usize,
size: usize,
},
InfiniteComputation {
message: String,
},
InputNotFound(String),
InvariantViolation(InvariantViolation),
InvalidComparison {
message: String,
left: Option<ValueAndType>,
right: Option<ValueAndType>,
},
NoResult,
ThrownError(String),
TypeMismatch {
expected: Vec<TypeHint>,
found: InvalidItem,
},
}Variants§
ArithmeticError
CastError
ExhaustedIterator
FieldNotFound
FunctionInvokeError
IndexOutOfBound
InfiniteComputation
InputNotFound(String)
InvariantViolation(InvariantViolation)
InvalidComparison
NoResult
ThrownError(String)
TypeMismatch
Trait Implementations§
Source§impl Debug for RibRuntimeError
impl Debug for RibRuntimeError
Source§impl Display for RibRuntimeError
impl Display for RibRuntimeError
Source§impl Error for RibRuntimeError
impl Error for RibRuntimeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<RibRuntimeError> for RibEvaluationError
impl From<RibRuntimeError> for RibEvaluationError
Source§fn from(error: RibRuntimeError) -> Self
fn from(error: RibRuntimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RibRuntimeError
impl !RefUnwindSafe for RibRuntimeError
impl Send for RibRuntimeError
impl Sync for RibRuntimeError
impl Unpin for RibRuntimeError
impl UnsafeUnpin for RibRuntimeError
impl !UnwindSafe for RibRuntimeError
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