default ServiceResult<SuccessType> ifFailure(Consumer<? super String> consumer) {
    return this;
  }
If the result of the operation has failed, invoke the specified consumer with the value,
otherwise do nothing.

@param consumer block to be executed if a value is present
@return this {@link ServiceResult}
@throws NullPointerException if value is present and {@code consumer} is
        null
geode-core/src/main/java/org/apache/geode/services/result/ServiceResult.java