public class ApiExceptions extends Object
ApiException.| Modifier and Type | Method and Description |
|---|---|
static <ResponseT> |
callAndTranslateApiException(com.google.api.core.ApiFuture<ResponseT> future)
Invokes
Future.get() on the given future, and if the call throws an exception (which
will be UncheckedExecutionException), the exception is processed in the following way:
If the exception cause is a RuntimeException, the RuntimeException is rethrown. |
public static <ResponseT> ResponseT callAndTranslateApiException(com.google.api.core.ApiFuture<ResponseT> future)
Future.get() on the given future, and if the call throws an exception (which
will be UncheckedExecutionException), the exception is processed in the following way: