use alloc::string::String;
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct ConditionEvalError {
message: String,
}
impl ConditionEvalError {
pub(crate) fn new(message: impl Into<String>) -> Self {
Self {
message: message.into(),
}
}
}
impl core::fmt::Display for ConditionEvalError {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
write!(f, "{}", self.message)
}
}