tower_http_cache/
error.rs

1use thiserror::Error;
2
3/// Errors that can occur while interacting with a cache backend.
4#[derive(Debug, Error)]
5pub enum CacheError {
6    #[error("backend error: {0}")]
7    Backend(String),
8
9    #[cfg(feature = "redis-backend")]
10    #[error(transparent)]
11    Redis(#[from] redis::RedisError),
12}