fabryk_query/
error.rs

1//! Error types for fabryk-query
2
3use thiserror::Error;
4
5/// Result type alias for fabryk-query operations
6pub type Result<T> = std::result::Result<T, Error>;
7
8/// Errors that can occur in fabryk-query
9#[derive(Error, Debug)]
10#[non_exhaustive]
11pub enum Error {
12    /// Error from fabryk-core
13    #[error("Core error: {0}")]
14    Core(#[from] fabryk_core::Error),
15
16    /// Error from fabryk-storage
17    #[error("Storage error: {0}")]
18    Storage(#[from] fabryk_storage::Error),
19
20    /// Placeholder error variant
21    #[error("Not yet implemented: {0}")]
22    NotImplemented(&'static str),
23}