use std::fmt;
#[derive(Debug, Clone)]
pub struct EvaluationError(String);
impl fmt::Display for EvaluationError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}", self.0)
}
}
impl std::error::Error for EvaluationError {}
impl EvaluationError {
pub fn new(msg: String) -> Self {
EvaluationError(msg)
}
}