! Error types for the Query System
// Source: https://github.com/spacedriveapp/spacedrive | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
//! Error types for the Query System
use crate::{common::errors::CoreError, library::LibraryError};
use serde::{Deserialize, Serialize};
use thiserror::Error;
use uuid::Uuid;
/// Result type for query operations
pub type QueryResult<T> = Result<T, QueryError>;
/// Errors that can occur during query execution
#[derive(Debug, Error)]
pub enum QueryError {
/// Query type not registered in the registry
#[error("Query type '{0}' is not registered")]
QueryNotRegistered(String),
/// Invalid query type for the handler
#[error("Invalid query type for this handler")]
InvalidQuery
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key