This exception is used to preserve the caller's stacktrace when invoking an async task in a sync
context. It will be added as a suppressed exception when propagating the async exception. This
allows callers to catch ApiException thrown in an async operation, while still maintaining the
call site.
[[["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 webpage provides documentation for \u003ccode\u003eAsyncTaskException\u003c/code\u003e, a class in the \u003ccode\u003ecom.google.api.gax.rpc\u003c/code\u003e package, with version 2.63.1 being the latest.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAsyncTaskException\u003c/code\u003e is a \u003ccode\u003eRuntimeException\u003c/code\u003e used to preserve the caller's stack trace when invoking an asynchronous task in a synchronous context.\u003c/p\u003e\n"],["\u003cp\u003eThis exception is used to allow users to catch \u003ccode\u003eApiException\u003c/code\u003e thrown in an async operation while maintaining the original call site, and will be added as a suppressed exception when propagating the async exception.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation includes a comprehensive list of available versions, ranging from 2.63.1 down to 2.7.1, with links to the corresponding API references for each version.\u003c/p\u003e\n"],["\u003cp\u003eThe page also includes a list of inherited methods from the Object and Throwable classes, with links to their respective Java documentation.\u003c/p\u003e\n"]]],[],null,[]]