Invokes ApiFuture#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. To ease
debugging, the a AsyncTaskException is 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-08-15 UTC."],[[["\u003cp\u003eThe webpage provides documentation for \u003ccode\u003eApiExceptions\u003c/code\u003e, a utility class designed for handling \u003ccode\u003eApiException\u003c/code\u003e within the Google Cloud API Client Libraries for Java.\u003c/p\u003e\n"],["\u003cp\u003eVersion 2.63.1 is the latest available release for this documentation, while version 2.21.0 is being highlighted as the selected version for the page, and several other older versions are also available to access.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eApiExceptions\u003c/code\u003e class inherits from \u003ccode\u003ejava.lang.Object\u003c/code\u003e, and the page includes a list of inherited members such as \u003ccode\u003eclone()\u003c/code\u003e, \u003ccode\u003eequals()\u003c/code\u003e, and \u003ccode\u003ewait()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eA static method, \u003ccode\u003e<ResponseT>callAndTranslateApiException(ApiFuture<ResponseT> future)\u003c/code\u003e, is available to process exceptions from \u003ccode\u003eApiFuture#get()\u003c/code\u003e, rethrowing \u003ccode\u003eRuntimeException\u003c/code\u003e and adding \u003ccode\u003eAsyncTaskException\u003c/code\u003e as a suppressed exception.\u003c/p\u003e\n"]]],[],null,[]]