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 of the \u003ccode\u003eAsyncTaskException\u003c/code\u003e class is 2.63.1, and it's part of the \u003ccode\u003ecom.google.api.gax.rpc\u003c/code\u003e package.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAsyncTaskException\u003c/code\u003e is a custom \u003ccode\u003eRuntimeException\u003c/code\u003e designed to maintain the original call site when an exception occurs during an asynchronous task within a synchronous context.\u003c/p\u003e\n"],["\u003cp\u003eThis exception type is specifically designed to add an async exception as a suppressed exception to enable users to maintain the original call site for when an \u003ccode\u003eApiException\u003c/code\u003e is caught.\u003c/p\u003e\n"],["\u003cp\u003eThe webpage displays an archive of \u003ccode\u003eAsyncTaskException\u003c/code\u003e versions, including various releases from 2.24.0 up to the most recent, 2.63.1, allowing access to historical documentation.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAsyncTaskException\u003c/code\u003e inherits several members from \u003ccode\u003eObject\u003c/code\u003e and \u003ccode\u003eThrowable\u003c/code\u003e, such as \u003ccode\u003eclone()\u003c/code\u003e, \u003ccode\u003eequals()\u003c/code\u003e, \u003ccode\u003egetMessage()\u003c/code\u003e, and \u003ccode\u003egetStackTrace()\u003c/code\u003e, and includes links to the corresponding Java documentation for these inherited members.\u003c/p\u003e\n"]]],[],null,[]]