use thiserror::Error;

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

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

    #[error("SQLite error: {0}")]
    Sqlite(#[from] rusqlite::Error),

    #[error("No home directory found")]
    NoHomeDir,
}
