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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-15 UTC."],[[["The latest version available is 2.63.1, representing the most up-to-date release of the `/java/docs/reference/gax/` package."],["This page provides access to a range of versions of the `AsyncTaskException` class, spanning from version 2.7.1 up to 2.63.1."],["`AsyncTaskException` is a runtime exception that preserves the caller's stack trace when invoking asynchronous tasks in a synchronous context."],["`AsyncTaskException` will be added as a suppressed exception when an async exception is propagated, in order to allow the caller to catch the thrown `ApiException` while maintaining the call site."],["The documentation includes inherited members of `AsyncTaskException` including methods from the `Object` and `Throwable` class."]]],[]]