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 latest version available is 2.63.1, representing the most up-to-date release of the \u003ccode\u003e/java/docs/reference/gax/\u003c/code\u003e package.\u003c/p\u003e\n"],["\u003cp\u003eThis page provides access to a range of versions of the \u003ccode\u003eAsyncTaskException\u003c/code\u003e class, spanning from version 2.7.1 up to 2.63.1.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAsyncTaskException\u003c/code\u003e is a runtime exception that preserves the caller's stack trace when invoking asynchronous tasks in a synchronous context.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAsyncTaskException\u003c/code\u003e will be added as a suppressed exception when an async exception is propagated, in order to allow the caller to catch the thrown \u003ccode\u003eApiException\u003c/code\u003e while maintaining the call site.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation includes inherited members of \u003ccode\u003eAsyncTaskException\u003c/code\u003e including methods from the \u003ccode\u003eObject\u003c/code\u003e and \u003ccode\u003eThrowable\u003c/code\u003e class.\u003c/p\u003e\n"]]],[],null,[]]