Class ApiRequestHelper

java.lang.Object
com.seeq.link.sdk.utilities.ApiRequestHelper

public final class ApiRequestHelper extends Object
  • Method Details

    • callNotFoundSafe

      public static <T> T callNotFoundSafe(Supplier<T> function)
      Returns the result of the API call passed as argument to this method. If the API call throws a 404 (NOT_FOUND) it returns null. ApiExceptions with a different status code are rethrown.