code: public void fail(Throwable ex) {
          this.done = true;
          if (this.failureHandler != null) {
              Callbacks.invokeSafely(this.failureHandler, ex, cex -> log.error("Fail Callback invocation failure.", cex));
          }
      }
docs: Completes the operation with failure.
  
  @param ex The causing exception.