weirwood 1.0.0

Privacy-preserving XGBoost inference via Fully Homomorphic Encryption
Documentation
use thiserror::Error;

#[derive(Debug, Error)]
pub enum Error {
    #[error("I/O error: {0}")]
    Io(#[from] std::io::Error),

    #[error("failed to parse model JSON: {0}")]
    Json(#[from] serde_json::Error),

    #[error("model format error: {0}")]
    Format(String),

    #[error("FHE error: {0}")]
    Fhe(String),

    /// Network/RPC failure, framing error, or any other transport-layer issue
    /// surfaced by the optional `transport` feature.
    #[error("transport error: {0}")]
    Transport(String),

    #[error("{0}")]
    Other(String),
}