code: private void cancelIncompleteOperations(Iterable<CompletableOperation> operations, Throwable failException) {
          assert failException != null : "no exception to set";
          int cancelCount = 0;
          for (CompletableOperation o : operations) {
              if (!o.isDone()) {
                  this.state.failOperation(o, failException);
                  cancelCount++;
              }
          }
  
          log.warn("{}: Cancelling {} operations with exception: {}.", this.traceObjectId, cancelCount, failException.toString());
      }
docs: Cancels those Operations in the given list that have not yet completed with the given exception.