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 documents the `AsyncTaskException` class, which is a subclass of `RuntimeException` in the `com.google.api.gax.rpc` package."],["The primary function of `AsyncTaskException` is to preserve the stack trace of the caller when an asynchronous task is executed within a synchronous context."],["When propagating an asynchronous exception, `AsyncTaskException` is added as a suppressed exception, allowing callers to catch `ApiException` while keeping track of the call site."],["The page provides a list of available versions for this exception, starting from version 2.63.1, labelled as the latest, and going down to version 2.7.1."],["The `AsyncTaskException` class inherits members from `Object` and `Throwable`, including methods for stack trace management and exception handling."]]],[]]