1 2 3 4 5 6 7 8 9 10 11 12 13
/// Used for any parsing error for any supported format.
#[derive(Debug)]
pub struct ParseError {
pub detail: String,
}
impl ParseError {
pub fn new(s: &str) -> ParseError {
ParseError{
detail: String::from(s),
}
}
}