libimagentrytag: use generate_error_module!() macro and reexport generated types

This commit is contained in:
Matthias Beyer 2016-05-19 17:11:18 +02:00
parent 698c219e04
commit b624ba9c06

View file

@ -1,9 +1,12 @@
generate_error_imports!();
generate_error_types!(TagError, TagErrorKind,
TagTypeError => "Entry Header Tag Type wrong",
HeaderReadError => "Error while reading entry header",
HeaderWriteError => "Error while writing entry header",
NotATag => "String is not a tag"
generate_error_module!(
generate_error_types!(TagError, TagErrorKind,
TagTypeError => "Entry Header Tag Type wrong",
HeaderReadError => "Error while reading entry header",
HeaderWriteError => "Error while writing entry header",
NotATag => "String is not a tag"
);
);
pub use self::error::TagError;
pub use self::error::TagErrorKind;