Rewrite hook error module with error macros
This commit is contained in:
parent
cb87b4b5d8
commit
3d9d5795e4
1 changed files with 8 additions and 6 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue