#[non_exhaustive]pub enum EngineError {
Parse(ParseError),
Storage(StorageError),
Eval(EvalError),
Unsupported(String),
TransactionAlreadyOpen,
NoActiveTransaction,
WriteRequired,
RowLimitExceeded(usize),
Cancelled,
}Expand description
All errors the engine can return.
Marked #[non_exhaustive] from v7.5.0 onward: external match
must include a _ arm so new variants in subsequent v7.x releases
are not breaking changes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Parse(ParseError)
Storage(StorageError)
Eval(EvalError)
Unsupported(String)
Front-end accepted a construct that the v0.x executor doesn’t support.
TransactionAlreadyOpen
BEGIN while another transaction is already open.
NoActiveTransaction
COMMIT / ROLLBACK with no active transaction.
WriteRequired
v4.0 sentinel: execute_readonly got a statement that
mutates engine state (INSERT / CREATE / BEGIN / COMMIT / …).
The caller should retake the write lock and dispatch through
execute(&mut self) instead.
RowLimitExceeded(usize)
v4.2: a SELECT would have returned more rows than the
configured max_query_rows cap. Carries the cap.
Cancelled
v4.5: cooperative cancellation — the host (server’s per-query watchdog) set the cancel flag while a long-running SELECT / UPDATE / DELETE was scanning rows. The partial work is discarded; the caller should surface this as a timeout to the client.
Trait Implementations§
Source§impl Clone for EngineError
impl Clone for EngineError
Source§fn clone(&self) -> EngineError
fn clone(&self) -> EngineError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EngineError
impl Debug for EngineError
Source§impl Display for EngineError
impl Display for EngineError
Source§impl From<EvalError> for EngineError
impl From<EvalError> for EngineError
Source§impl From<ParseError> for EngineError
impl From<ParseError> for EngineError
Source§fn from(e: ParseError) -> Self
fn from(e: ParseError) -> Self
Source§impl From<StorageError> for EngineError
impl From<StorageError> for EngineError
Source§fn from(e: StorageError) -> Self
fn from(e: StorageError) -> Self
Source§impl PartialEq for EngineError
impl PartialEq for EngineError
Source§fn eq(&self, other: &EngineError) -> bool
fn eq(&self, other: &EngineError) -> bool
self and other values to be equal, and is used by ==.