blob: 20654df2003904312d40520440b0f71c95fb6578 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#[derive(Debug, Clone, Eq, PartialEq, Fail)]
pub enum VObjectErrorKind {
#[fail(display = "Parser error: {}", _0)]
ParserError(String),
#[fail(display = "Not a Vcard")]
NotAVCard,
#[fail(display = "Not a Icalendar: {}", _0)]
NotAnICalendar(String),
#[fail(display = "{}", _0)]
ChronoError(::chrono::format::ParseError),
}
pub type Result<T> = ::std::result::Result<T, VObjectErrorKind>;
|