use thiserror::Error;
#[derive(Debug, Error)]
pub enum Error {
#[error("file not found: {0}")]
FileNotFound(String),
#[error("IO error: {0}")]
Io(#[from] std::io::Error),
#[error("serialization error: {0}")]
Serialization(#[from] serde_json::Error),
#[error("SQLite error: {0}")]
Sqlite(#[from] rusqlite::Error),
#[error("{0}")]
Other(String),
}