Add error kind for denied hooks
This commit is contained in:
parent
8adfe7443e
commit
b4b719b753
|
@ -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)]
|
||||
|
|
Loading…
Reference in New Issue