1use crate::error::{CacheError, RemoteStorageError, RpcClientError};
6use thiserror::Error;
7
8#[derive(Debug, Error)]
10pub enum LocalStorageError {
11 #[error("Arithmetic error")]
13 Arithmetic,
14 #[error(transparent)]
16 Cache(#[from] CacheError),
17 #[error(transparent)]
19 RemoteStorage(#[from] RemoteStorageError),
20 #[error("RPC error: {0}")]
22 Rpc(#[from] RpcClientError),
23 #[error("Local storage acquire error: {0}")]
25 Lock(String),
26 #[error("Metadata not found: {0}")]
28 MetadataNotFound(String),
29}