13 lines
304 B
Rust
13 lines
304 B
Rust
use thiserror::Error;
|
|
|
|
#[derive(Error, Debug)]
|
|
pub enum StorageError {
|
|
#[error("Database error: {0}")]
|
|
Db(#[from] rusqlite::Error),
|
|
#[error("Connection pool error: {0}")]
|
|
Pool(String),
|
|
#[error("IO error: {0}")]
|
|
Io(#[from] std::io::Error),
|
|
#[error("{0}")]
|
|
Other(String),
|
|
}
|