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 strRegister), RegisterNotAColumn(&'static strRegister), RegisterNotAInsert(&'static strRegister), RegisterNotAInsertRow(&'static strRegister), CannotReturn(Register), FilterWithNonBoolean(ExprValue), 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(BoundedStringusizeusize), NotEnoughValuesToInsert(BoundedStringusizeusize), 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 strRegister)

§

RegisterNotAColumn(&'static strRegister)

§

RegisterNotAInsert(&'static strRegister)

§

RegisterNotAInsertRow(&'static strRegister)

§

CannotReturn(Register)

§

FilterWithNonBoolean(ExprValue)

§

ProjectOnNonEmptyTable(BoundedString)

§

ProjectTableSizeMismatch

Fields

§inp_table_name: BoundedString
§inp_table_len: usize
§out_table_name: BoundedString
§out_table_len: usize
§

TableNewColumnSizeMismatch

Fields

§table_name: BoundedString
§table_len: usize
§col_len: usize
§

UnsupportedType(DataType)

§

ExprExecError(ExprExecError)

§

TooManyValuesToInsert(BoundedStringusizeusize)

§

NotEnoughValuesToInsert(BoundedStringusizeusize)

§

Unsupported(&'static str)

Trait Implementations§

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.