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