Package com.seeq.link.sdk.utilities
Class ApiRequestHelper
java.lang.Object
com.seeq.link.sdk.utilities.ApiRequestHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
callNotFoundSafe
(Supplier<T> function) Returns the result of the API call passed as argument to this method.
-
Method Details
-
callNotFoundSafe
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.
-