imag/libimagmail/src/error.rs

17 lines
568 B
Rust
Raw Normal View History

2016-08-09 13:38:35 +00:00
generate_error_module!(
generate_error_types!(MailError, MailErrorKind,
RefCreationError => "Error creating a reference to a file/directory",
2016-09-21 17:25:25 +00:00
RefHandlingError => "Error while handling the internal reference object",
2016-09-21 16:14:11 +00:00
MailParsingError => "Error while parsing mail",
2016-09-21 17:11:21 +00:00
FetchByHashError => "Error fetching mail from Store by hash",
FetchError => "Error fetching mail from Store",
2016-08-09 13:38:35 +00:00
IOError => "IO Error"
);
);
pub use self::error::MailError;
pub use self::error::MailErrorKind;
pub use self::error::MapErrInto;