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\u003eThe latest version available is 2.63.1, but the page lists many previous versions dating back to 2.7.1, all of which are for the \u003ccode\u003ecom.google.api.gax.rpc.ApiExceptions\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eApiExceptions\u003c/code\u003e class is a utility designed to help with working with \u003ccode\u003eApiException\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits several members from \u003ccode\u003ejava.lang.Object\u003c/code\u003e, such as \u003ccode\u003eclone()\u003c/code\u003e, \u003ccode\u003eequals(Object)\u003c/code\u003e, \u003ccode\u003ehashCode()\u003c/code\u003e, and \u003ccode\u003etoString()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe method \u003ccode\u003ecallAndTranslateApiException\u003c/code\u003e is used to invoke \u003ccode\u003eApiFuture#get()\u003c/code\u003e on a given future, handling potential \u003ccode\u003eUncheckedExecutionException\u003c/code\u003e by either rethrowing the \u003ccode\u003eRuntimeException\u003c/code\u003e cause or the \u003ccode\u003eUncheckedExecutionException\u003c/code\u003e itself.\u003c/p\u003e\n"],["\u003cp\u003eThe method \u003ccode\u003ecallAndTranslateApiException\u003c/code\u003e takes a parameter named \u003ccode\u003efuture\u003c/code\u003e, which is a \u003ccode\u003ecom.google.api.core.ApiFuture\u003c/code\u003e of type \u003ccode\u003eResponseT\u003c/code\u003e, and returns the type \u003ccode\u003eResponseT\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]