code: protected void handleErrors(Collection<Throwable> errors, Object event) {
  
      if (this.globalExceptionHandler == null) {
        for (Throwable error : errors) {
          LOG.error("Failed to dispatch event {}", event, error);
        }
      } else {
        this.globalExceptionHandler.handleErrors(event, errors.toArray(new Throwable[errors.size()]));
      }
    }
docs: This method is called if errors occurred while dispatching events.
  
  @param errors is the {@link Collection} with the errors. Will NOT be {@link Collection#isEmpty() empty}.
  @param event is the event that has been send and caused the errors.