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."],[[["The latest version of the documentation provided is 2.63.1, and this page covers a range of versions going back to version 2.7.1 for the `com.google.api.gax.rpc.AsyncTaskException` class."],["`AsyncTaskException` is a type of `RuntimeException` that preserves the caller's stack trace when an asynchronous task is run within a synchronous context."],["This exception type captures exceptions from async operations, such as `ApiException`, and adds them as suppressed exceptions to retain information about where the error occurred."],["The `AsyncTaskException` class inherits multiple members from the `Object` and `Throwable` classes, offering methods like `addSuppressed()`, `getCause()`, and `getStackTrace()`."]]],[]]