kglite 0.13.4

Pure-Rust embedded Cypher knowledge graph engine with in-memory, mmap, and disk storage, agent-facing schema introspection, and optional dataset loaders
Documentation
//! Unified error type for the crate.

use thiserror::Error;

/// All errors produced by the kglite-wikidata crate.
#[derive(Debug, Error)]
pub enum WikidataError {
    #[error("io error: {0}")]
    Io(#[from] std::io::Error),

    #[error("http error: {0}")]
    Http(String),

    #[error("bad response: {status} for {url}")]
    BadStatus { status: u16, url: String },

    #[error("malformed: {0}")]
    Malformed(String),
}

pub type Result<T> = std::result::Result<T, WikidataError>;