iota/iota-storage/src/storage_error.rs
Alex Emmet 3be1d9f308 [Mig] storage to SQLite pool
[Clean] split message handler dispatch
2026-07-08 23:40:46 +02:00

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),
}