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

View file

@ -3,7 +3,8 @@ generate_error_imports!();
generate_custom_error_types!(HookError, HookErrorKind, CustomData, generate_custom_error_types!(HookError, HookErrorKind, CustomData,
HookExecutionError => "Hook exec error", 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)] #[derive(Debug, Clone, Eq, PartialEq, Ord, PartialOrd, Copy)]