use std::fmt;
use std::error::Error;
#[derive(Debug, PartialEq)]
pub enum EdoError {
ParsingError,
}
impl fmt::Display for EdoError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match *self {
EdoError::ParsingError => write!(f, "Parsing error"),
}
}
}
impl Error for EdoError {
fn description(&self) -> &str {
match *self {
EdoError::ParsingError => "Parsing error",
}
}
fn cause(&self) -> Option<&Error> {
match *self {
EdoError::ParsingError => None,
}
}
}