Skip to main content

pop_fork/error/
remote.rs

1// SPDX-License-Identifier: GPL-3.0
2
3//! Remote storage layer error types.
4
5use crate::error::{CacheError, RpcClientError};
6use thiserror::Error;
7
8/// Errors that can occur when accessing the remote storage layer.
9#[derive(Debug, Error)]
10pub enum RemoteStorageError {
11	/// RPC client error when fetching from the live chain.
12	#[error("RPC error: {0}")]
13	Rpc(#[from] RpcClientError),
14	/// Cache error when storing/retrieving cached values.
15	#[error("Cache error: {0}")]
16	Cache(#[from] CacheError),
17}