imag/libimagnotes/src/error.rs

13 lines
406 B
Rust
Raw Normal View History

generate_error_module!(
generate_error_types!(NoteError, NoteErrorKind,
StoreWriteError => "Error writing store",
StoreReadError => "Error reading store",
HeaderTypeError => "Header type error",
NoteToEntryConversion => "Error converting Note instance to Entry instance"
);
);
2016-02-13 17:29:34 +00:00
pub use self::error::NoteError;
pub use self::error::NoteErrorKind;