use std::{error::Error, fmt::Display};
#[derive(Debug)]
pub enum PredicateError {
InvalidationClosuresDisabled,
}
impl Display for PredicateError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"Support for invalidation closures is disabled in this cache. \
Please enable it by calling the support_invalidation_closures \
method of the builder at the cache creation time",
)
}
}
impl Error for PredicateError {}