ceres: a small planet in a giant solar system
1use crate::storage::StorageError;
2use thiserror::Error;
3
4#[derive(Debug, Error)]
5pub enum Error {
6 #[error("storage: {0}")]
7 Storage(#[from] StorageError),
8 #[error("I/O: {0}")]
9 Io(#[from] std::io::Error),
10 #[error("task: {0}")]
11 Join(#[from] tokio::task::JoinError),
12 #[error("{0}")]
13 Other(String),
14}
15
16pub type Result<T> = std::result::Result<T, Error>;