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-07-01 UTC."],[[["The latest version of the `AsyncTaskException` documentation is 2.63.1, and this webpage provides access to documentation for numerous versions, ranging down to version 2.7.1."],["`AsyncTaskException` is a `RuntimeException` used to maintain the caller's stack trace when an asynchronous task is executed within a synchronous context."],["The `AsyncTaskException` is added as a suppressed exception when propagating the asynchronous exception, which lets the callers catch `ApiException` while retaining the call site."],["The page includes a list of inherited members from the `Object` and `Throwable` classes, such as methods for managing stack traces, messages, and exception causes."]]],[]]