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 page provides documentation for the `AsyncTaskException` class within the Google API Client Library for Java, specifically the `com.google.api.gax.rpc` package."],["The `AsyncTaskException` is a `RuntimeException` designed to preserve the stack trace when an asynchronous task is executed in a synchronous context, ensuring that the origin of the exception is maintained."],["The exception can be caught when an `ApiException` is thrown in an asynchronous context, while simultaneously preserving the original call site information for debugging."],["This page contains links to documentation of the `AsyncTaskException` for several versions of the library ranging from version 2.7.1 up to the latest version, 2.63.1."]]],[]]