code: private void runEKBErrorHooks(EKBCommit commit, EKBException exception) {
          if (exception != null) {
              for (EKBErrorHook hook : errorHooks) {
                  hook.onError(commit, exception);
              }
              throw exception;
          }
      }
docs: Runs all registered error hooks