public static <T> Failure<T> of(String errorMessage) {
    if (StringUtils.isBlank(errorMessage)) {
      throw new IllegalArgumentException("Error message cannot be null or empty");
    }
    return new Failure<>(errorMessage);
  }
Creates a {@link Failure} object containing the errorMessage

@param <T> the type of the result
@param errorMessage the error message describing the reason for failure.
@return an {@link Failure} instance containing the errorMessage
geode-core/src/main/java/org/apache/geode/services/result/impl/Failure.java