Enum otter_sql::vm::RuntimeError
source · 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<RuntimeError> for RuntimeError
impl PartialEq<RuntimeError> for RuntimeError
source§fn eq(&self, other: &RuntimeError) -> bool
fn eq(&self, other: &RuntimeError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.