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-03-21 UTC."],[[["This webpage details the `AsyncTaskException` class within the Google API Client Library for Java."],["The `AsyncTaskException` is used to preserve the original stack trace when an asynchronous task is invoked in a synchronous context."],["The latest version of the `AsyncTaskException` is found in version 2.63.1 of the library, with numerous previous versions available as far back as version 2.7.1."],["When an asynchronous exception is thrown, this `AsyncTaskException` will be added as a suppressed exception, which can allow the caller to maintain the call site while catching `ApiException`."],["This class inherits a variety of methods from `Object` and `Throwable` classes, including methods for stack trace management, exception details, and object comparison."]]],[]]