code: private void handleException(String key, Exception e) {
          if (e != null) {
              log.error(key, e.getLocalizedMessage());
              throw new Abort(e);
          } else {
              log.error(key);
              throw new Abort();
          }
      }
docs: Handle a security exception thrown during initializing the
  Processor iterator.