libimagentrytag: use generate_error_module!() macro and reexport generated types
This commit is contained in:
parent
698c219e04
commit
b624ba9c06
1 changed files with 10 additions and 7 deletions
|
@ -1,9 +1,12 @@
|
||||||
generate_error_imports!();
|
generate_error_module!(
|
||||||
|
generate_error_types!(TagError, TagErrorKind,
|
||||||
generate_error_types!(TagError, TagErrorKind,
|
|
||||||
TagTypeError => "Entry Header Tag Type wrong",
|
TagTypeError => "Entry Header Tag Type wrong",
|
||||||
HeaderReadError => "Error while reading entry header",
|
HeaderReadError => "Error while reading entry header",
|
||||||
HeaderWriteError => "Error while writing entry header",
|
HeaderWriteError => "Error while writing entry header",
|
||||||
NotATag => "String is not a tag"
|
NotATag => "String is not a tag"
|
||||||
|
);
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub use self::error::TagError;
|
||||||
|
pub use self::error::TagErrorKind;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue