use thiserror::Error;
#[derive(Debug, Error)]
#[non_exhaustive]
pub enum Error {
#[error("storage error: {0}")]
Sqlite(#[from] rusqlite::Error),
#[error("connection pool error: {0}")]
Pool(#[from] r2d2::Error),
#[error("invalid entry: {0}")]
InvalidEntry(String),
#[error("migration error: {0}")]
Migration(String),
#[error("distillation error: {0}")]
Distill(String),
}