Add HookExecutionError error kind

This commit is contained in:
Matthias Beyer 2016-02-23 20:05:02 +01:00
parent 1c40be78a9
commit 3421e8d4d9
1 changed files with 2 additions and 0 deletions

View File

@ -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",
}