relay_cardinality/
error.rs

1
2
3
4
5
6
7
8
9
10
11
12
use relay_redis::RedisError;

/// Result type for the cardinality module, using [`Error`] as the default error type.
pub type Result<T, E = Error> = std::result::Result<T, E>;

/// Error for the cardinality module.
#[derive(Debug, thiserror::Error)]
pub enum Error {
    /// Something went wrong with Redis.
    #[error("failed to talk to redis: {0}")]
    RedisError(#[from] RedisError),
}