1use std::num::TryFromIntError;
2
3use thiserror::Error;
4
5#[derive(Debug, Error)]
7pub enum ReconstructionCacheError {
8 #[error("reconstruction cache redis url must not be empty")]
10 EmptyRedisUrl,
11 #[error("reconstruction cache redis operation failed")]
13 Redis(#[from] redis::RedisError),
14 #[error("reconstruction cache numeric conversion exceeded supported bounds")]
16 NumericConversion(#[from] TryFromIntError),
17 #[error("reconstruction cache adapter operation failed")]
19 Operation,
20}