use thiserror::Error;

#[derive(Debug, Error)]
pub enum KeeperError {
    #[error("key error: {0}")]
    Key(String),

    #[error("signing failed: {0}")]
    Sign(String),

    #[error("NATS error: {0}")]
    Nats(String),

    #[error("policy error: {0}")]
    Policy(String),

    #[error("json error: {0}")]
    Json(#[from] serde_json::Error),

    #[error("io error: {0}")]
    Io(#[from] std::io::Error),

    #[error("glob pattern error: {0}")]
    Glob(String),
}
