libimagnotes: use generate_error_module!() macro and reexport generated types
This commit is contained in:
parent
d2fa853a08
commit
bfa1fc5c87
1 changed files with 10 additions and 7 deletions
|
@ -1,9 +1,12 @@
|
|||
generate_error_imports!();
|
||||
|
||||
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"
|
||||
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"
|
||||
);
|
||||
);
|
||||
|
||||
pub use self::error::NoteError;
|
||||
pub use self::error::NoteErrorKind;
|
||||
|
||||
|
|
Loading…
Reference in a new issue