use thiserror::Error;
#[derive(Error, Debug)]
pub enum StorageError {
#[error("File not found: {path}")]
FileNotFound { path: String },
#[error("Permission denied: {path}")]
PermissionDenied { path: String },
#[error("Disk full: {path}")]
DiskFull { path: String },
#[error("Corruption detected: {path}")]
Corruption { path: String },
#[error("Storage backend error: {backend}")]
Backend { backend: String },
}