langtime/
errors.rs

1use std::fmt;
2
3#[derive(Debug)]
4pub struct NotParsable;
5
6impl fmt::Display for NotParsable {
7    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
8        write!(f, "String not parsable to a valid datetime")
9    }
10}
11
12impl std::error::Error for NotParsable {}