pub enum RuntimeError {
Show 20 variants
ColumnNotFound(ColumnRef),
TableNotFound(TableRef),
TableExists(TableRef),
SchemaNotFound(BoundedString),
SchemaExists(BoundedString),
EmptyRegister(RegisterIndex),
RegisterNotATable(&'static str, Register),
RegisterNotAColumn(&'static str, Register),
RegisterNotAInsert(&'static str, Register),
RegisterNotAInsertRow(&'static str, Register),
CannotReturn(Register),
FilterWithNonBoolean(Expr, Value),
ProjectOnNonEmptyTable(BoundedString),
ProjectTableSizeMismatch {
inp_table_name: BoundedString,
inp_table_len: usize,
out_table_name: BoundedString,
out_table_len: usize,
},
TableNewColumnSizeMismatch {
table_name: BoundedString,
table_len: usize,
col_name: BoundedString,
col_len: usize,
},
UnsupportedType(DataType),
ExprExecError(ExprExecError),
TooManyValuesToInsert(BoundedString, usize, usize),
NotEnoughValuesToInsert(BoundedString, usize, usize),
Unsupported(&'static str),
}
Expand description
All possible errors handled during execution.
This includes constraint violations, errors in expression evaluation, unsupported features as well as internal errors that are explicitly caught.
Variantsยง
ColumnNotFound(ColumnRef)
TableNotFound(TableRef)
TableExists(TableRef)
SchemaNotFound(BoundedString)
SchemaExists(BoundedString)
EmptyRegister(RegisterIndex)
RegisterNotATable(&'static str, Register)
RegisterNotAColumn(&'static str, Register)
RegisterNotAInsert(&'static str, Register)
RegisterNotAInsertRow(&'static str, Register)
CannotReturn(Register)
FilterWithNonBoolean(Expr, Value)
ProjectOnNonEmptyTable(BoundedString)
ProjectTableSizeMismatch
TableNewColumnSizeMismatch
UnsupportedType(DataType)
ExprExecError(ExprExecError)
TooManyValuesToInsert(BoundedString, usize, usize)
NotEnoughValuesToInsert(BoundedString, usize, usize)
Unsupported(&'static str)
Trait Implementationsยง
Sourceยงimpl Debug for RuntimeError
impl Debug for RuntimeError
Sourceยงimpl Display for RuntimeError
impl Display for RuntimeError
Sourceยงimpl From<ExprExecError> for RuntimeError
impl From<ExprExecError> for RuntimeError
Sourceยงfn from(e: ExprExecError) -> Self
fn from(e: ExprExecError) -> Self
Converts to this type from the input type.
Sourceยงimpl From<RuntimeError> for ExecutionError
impl From<RuntimeError> for ExecutionError
Sourceยงfn from(err: RuntimeError) -> Self
fn from(err: RuntimeError) -> Self
Converts to this type from the input type.
Sourceยงimpl PartialEq for RuntimeError
impl PartialEq for RuntimeError
impl StructuralPartialEq for RuntimeError
Auto Trait Implementationsยง
impl Freeze for RuntimeError
impl RefUnwindSafe for RuntimeError
impl Send for RuntimeError
impl Sync for RuntimeError
impl Unpin for RuntimeError
impl UnwindSafe for RuntimeError
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