pub enum OracleError {
SyntaxError(String),
SemanticError(String),
RuntimeError(String),
Timeout(u64),
Unsupported(String),
Internal(String),
}Expand description
Errors that can occur during oracle execution.
Variants§
SyntaxError(String)
SQL syntax error (query is malformed).
SemanticError(String)
Semantic error (query is valid but incorrect, e.g., table not found).
RuntimeError(String)
Runtime error (query execution failed).
Timeout(u64)
Timeout error (query took too long).
Unsupported(String)
Unsupported feature (query uses SQL features not implemented).
Internal(String)
Internal error (bug in the oracle implementation).
Trait Implementations§
Source§impl Debug for OracleError
impl Debug for OracleError
Source§impl Display for OracleError
impl Display for OracleError
Source§impl Error for OracleError
impl Error for OracleError
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()
Auto Trait Implementations§
impl Freeze for OracleError
impl RefUnwindSafe for OracleError
impl Send for OracleError
impl Sync for OracleError
impl Unpin for OracleError
impl UnsafeUnpin for OracleError
impl UnwindSafe for OracleError
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