InvokesApiFuture#get()on the given future, and if the call throws an exception (which
will beUncheckedExecutionException), the exception is processed in the following way:
If the exception cause is a RuntimeException, the RuntimeException is rethrown. To ease
debugging, the aAsyncTaskExceptionis added as a suppressed exception to
maintain the callsite.
Otherwise, the UncheckedExecutionException is rethrown.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThis page provides documentation for the \u003ccode\u003eApiExceptions\u003c/code\u003e utility class, designed for handling \u003ccode\u003eApiException\u003c/code\u003e within the Google Cloud API client library for Java (gax).\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eApiExceptions\u003c/code\u003e available is 2.63.1, and the page provides a comprehensive list of previous versions, starting with version 2.62.0, down to 2.7.1, each with a direct link to its documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eApiExceptions\u003c/code\u003e class inherits from \u003ccode\u003ejava.lang.Object\u003c/code\u003e, as detailed in the inherited members section, which lists out each of the inherited members.\u003c/p\u003e\n"],["\u003cp\u003eThe primary static method offered by this class is \u003ccode\u003e<ResponseT>callAndTranslateApiException(ApiFuture<ResponseT> future)\u003c/code\u003e, which handles \u003ccode\u003eApiFuture#get()\u003c/code\u003e exceptions by rethrowing \u003ccode\u003eRuntimeException\u003c/code\u003e or \u003ccode\u003eUncheckedExecutionException\u003c/code\u003e, and adds \u003ccode\u003eAsyncTaskException\u003c/code\u003e as suppressed for easier debugging.\u003c/p\u003e\n"]]],[],null,[]]