use thiserror::Error;
#[derive(Debug, Clone, Error)]
pub enum StorageError {
#[error("backend error: {0}")]
Backend(String),
#[error("not found: {0}")]
NotFound(String),
#[error("duplicate: {0}")]
Duplicate(String),
#[error("connection error: {0}")]
Connection(String),
#[error("migration error: {0}")]
Migration(String),
}