code: public static ExceptionCallback failOnError() {
          return new ExceptionCallback() {
              @Override
              public void exception(FailedEventInvocation invocation) {
                  throw new AbortionException(invocation.getException());
              }
          };
      }
docs: The callback will convert the occurred exception into an
  {@link AbortionException} and then throw it. This stops the delegation
  process with delegating the exception to the dispatcher of the event.
  
  @return The callback.