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 used in Java to manage exceptions from asynchronous tasks within a synchronous context, as part of Google's API client library, GAX.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAsyncTaskException\u003c/code\u003e preserves the caller's stack trace when an async task is invoked in a sync context, and is added as a suppressed exception when propagating the async exception.\u003c/p\u003e\n"],["\u003cp\u003eThe content lists different versions of the \u003ccode\u003eAsyncTaskException\u003c/code\u003e documentation, ranging from version 2.63.1 (latest) down to 2.7.1, allowing developers to review the documentation corresponding to their specific GAX library version.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAsyncTaskException\u003c/code\u003e class extends \u003ccode\u003eRuntimeException\u003c/code\u003e and includes a list of inherited members from \u003ccode\u003eObject\u003c/code\u003e and \u003ccode\u003eThrowable\u003c/code\u003e, referencing external Java documentation for further information.\u003c/p\u003e\n"]]],[],null,[]]