Add HookExecutionError error kind
This commit is contained in:
parent
1c40be78a9
commit
3421e8d4d9
1 changed files with 2 additions and 0 deletions
|
@ -28,6 +28,7 @@ pub enum StoreErrorKind {
|
|||
HeaderKeyNotFound,
|
||||
HeaderTypeFailure,
|
||||
HookRegisterError,
|
||||
HookExecuteError,
|
||||
PreHookExecuteError,
|
||||
PostHookExecuteError,
|
||||
// maybe more
|
||||
|
@ -54,6 +55,7 @@ fn store_error_type_as_str(e: &StoreErrorKind) -> &'static str {
|
|||
&StoreErrorKind::HeaderKeyNotFound => "Header Key not found",
|
||||
&StoreErrorKind::HeaderTypeFailure => "Header type is wrong",
|
||||
&StoreErrorKind::HookRegisterError => "Hook register error",
|
||||
&StoreErrorKind::HookExecutionError => "Hook execution error",
|
||||
&StoreErrorKind::PreHookExecuteError => "Pre-Hook execution error",
|
||||
&StoreErrorKind::PostHookExecuteError => "Post-Hook execution error",
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue