docs: public <F extends Throwable> RetryPolicy<R> withDelayOn(DelayFunction<R, F> delayFunction, Class<F> failure) {
      withDelay(delayFunction);
      Assert.notNull(failure, "failure");
      this.delayFailure = failure;
      return this;
    }