Add error kind for denied hooks

This commit is contained in:
Matthias Beyer 2016-07-06 19:09:58 +02:00
parent 8adfe7443e
commit b4b719b753
1 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,8 @@ generate_error_imports!();
generate_custom_error_types!(HookError, HookErrorKind, CustomData,
HookExecutionError => "Hook exec error",
AccessTypeViolation => "Hook access type violation"
AccessTypeViolation => "Hook access type violation",
MutableHooksNotAllowed => "Mutable Hooks are denied"
);
#[derive(Debug, Clone, Eq, PartialEq, Ord, PartialOrd, Copy)]