Skip to main content

signet_sim/cache/
error.rs

1/// Possible errors that can occur when using the cache.
2#[derive(Debug, thiserror::Error)]
3pub enum CacheError {
4    /// The bundle does not have a replacement UUID, which is required for caching.
5    #[error("bundle has no replacement UUID")]
6    BundleWithoutReplacementUuid,
7
8    /// Error recovering a transaction.
9    #[error(transparent)]
10    TxRecover(#[from] alloy::consensus::crypto::RecoveryError),
11
12    /// Error recovering a bundle.
13    #[error(transparent)]
14    BundleRecover(#[from] signet_bundle::BundleRecoverError),
15}