Exception thrown when attempting to retrieve the result of a task
that aborted by throwing an exception. This exception can be
inspected using the Throwable.getCause() method.
Returns an array containing all of the exceptions that were
suppressed, typically by the try-with-resources
statement, in order to deliver this exception.
Constructs an ExecutionException with the specified cause.
The detail message is set to (cause == null ? null :
cause.toString()) (which typically contains the class and
detail message of cause).
Parameters
cause
the cause (which is saved for later retrieval by the
Throwable.getCause() method)
Protected Constructors
protected
ExecutionException()
Constructs an ExecutionException with no detail message.
The cause is not initialized, and may subsequently be
initialized by a call to initCause.
Constructs an ExecutionException with the specified detail
message. The cause is not initialized, and may subsequently be
initialized by a call to initCause.
[[["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 2024-07-10 UTC."],[],["`ExecutionException` is thrown when a task aborts with an exception. This exception can be inspected using `getCause()`. Constructors allow creating `ExecutionException` with a detail message and/or a cause, or with neither. Inherited methods from `Throwable` include manipulating the stack trace, obtaining the cause, and retrieving messages related to the exception. Inherited methods from `Object` allow comparing objects and manipulating threads. You can initialize the cause using `initCause()` in the protected constructors.\n"]]