use std::num::TryFromIntError;
use thiserror::Error;
#[derive(Debug, Error)]
pub enum ReconstructionCacheError {
#[error("reconstruction cache redis url must not be empty")]
EmptyRedisUrl,
#[error("reconstruction cache redis operation failed")]
Redis(#[from] redis::RedisError),
#[error("reconstruction cache numeric conversion exceeded supported bounds")]
NumericConversion(#[from] TryFromIntError),
#[error("reconstruction cache adapter operation failed")]
Operation,
}