pub enum TqlError {
ParseError {
message: String,
position: usize,
query: Option<String>,
},
SyntaxError {
message: String,
position: Option<usize>,
query: Option<String>,
suggestions: Vec<String>,
},
FieldError(String),
TypeError(String),
OperatorError(String),
ValueError(String),
ExecutionError(String),
ValidationError(String),
UnsupportedOperation(String),
IoError(String),
NetworkError(String),
MutatorError(String),
}Expand description
Main error type for TQL operations
Variants§
ParseError
Parse error with position information
SyntaxError
Syntax error in query
FieldError(String)
Field not found or invalid field access
TypeError(String)
Type mismatch or type conversion error
OperatorError(String)
Invalid operator usage
ValueError(String)
Invalid value
ExecutionError(String)
Query execution error
ValidationError(String)
Validation error
UnsupportedOperation(String)
Unsupported operation
IoError(String)
I/O error
NetworkError(String)
Network error (DNS, GeoIP, etc.)
MutatorError(String)
Mutator error
Trait Implementations§
Source§impl Error for TqlError
impl Error for TqlError
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()
impl StructuralPartialEq for TqlError
Auto Trait Implementations§
impl Freeze for TqlError
impl RefUnwindSafe for TqlError
impl Send for TqlError
impl Sync for TqlError
impl Unpin for TqlError
impl UnwindSafe for TqlError
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