Rewrite hook error module with error macros

This commit is contained in:
Matthias Beyer 2016-05-27 10:15:29 +02:00
parent cb87b4b5d8
commit 3d9d5795e4

View file

@ -1,8 +1,10 @@
generate_error_imports!();
use std::convert::Into;
generate_error_types!(HookError, HookErrorKind,
generate_error_module!(
generate_error_types!(HookError, HookErrorKind,
HookExecutionError => "Hook exec error",
AccessTypeViolation => "Hook access type violation"
);
);
pub use self::error::HookError;
pub use self::error::HookErrorKind;