Files
smartdb/rust/crates/rustdb-query/src/error.rs
T

19 lines
424 B
Rust

/// Errors from query operations.
#[derive(Debug, thiserror::Error)]
pub enum QueryError {
#[error("Invalid query operator: {0}")]
InvalidOperator(String),
#[error("Type mismatch: {0}")]
TypeMismatch(String),
#[error("Invalid update: {0}")]
InvalidUpdate(String),
#[error("Aggregation error: {0}")]
AggregationError(String),
#[error("Invalid regex: {0}")]
InvalidRegex(String),
}