pub enum QailError {
Parse {
position: usize,
message: String,
},
InvalidAction(String),
MissingSymbol {
symbol: &'static str,
description: &'static str,
},
InvalidOperator(String),
InvalidValue(String),
Database(String),
Connection(String),
Execution(String),
Config(String),
Io(Error),
}Expand description
The main error type for QAIL operations.
Variants§
Parse
Failed to parse the QAIL query string.
InvalidAction(String)
Invalid action (must be get, set, del, or add).
MissingSymbol
Missing required symbol.
InvalidOperator(String)
Invalid operator.
InvalidValue(String)
Invalid value.
Database(String)
Database error.
Connection(String)
Connection error.
Execution(String)
Query execution error.
Config(String)
Configuration error.
Io(Error)
IO error.
Implementations§
Trait Implementations§
Source§impl Error for QailError
impl Error for QailError
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 QailError
impl !RefUnwindSafe for QailError
impl Send for QailError
impl Sync for QailError
impl Unpin for QailError
impl !UnwindSafe for QailError
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