//! Errors for the query/subscription layer.

/// Errors surfaced by `QueryEngine`.
#[derive(Debug, thiserror::Error)]
pub enum Error {
    /// Underlying triple-store failure.
    #[error("triples: {0}")]
    Triples(#[from] ontoref_triples::Error),
}

/// Convenience alias.
pub type Result<T> = std::result::Result<T, Error>;
