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 the \u003ccode\u003eAsyncTaskException\u003c/code\u003e class in the Google API Client Library for Java, focusing on its role in handling exceptions from asynchronous tasks.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAsyncTaskException\u003c/code\u003e is a \u003ccode\u003eRuntimeException\u003c/code\u003e that maintains the caller's stack trace when an asynchronous task is executed within a synchronous context.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation includes links to various versions of the library, with the latest version being 2.63.1, and going back as far as 2.7.1.\u003c/p\u003e\n"],["\u003cp\u003eThis exception is designed to preserve the call site's context, even when an \u003ccode\u003eApiException\u003c/code\u003e is thrown during an async operation.\u003c/p\u003e\n"],["\u003cp\u003eThe page also shows the inherited members from the \u003ccode\u003eObject\u003c/code\u003e and \u003ccode\u003eThrowable\u003c/code\u003e classes, detailing methods like \u003ccode\u003eclone()\u003c/code\u003e, \u003ccode\u003eequals()\u003c/code\u003e, and \u003ccode\u003eprintStackTrace()\u003c/code\u003e that are available to \u003ccode\u003eAsyncTaskException\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]