Class ExecutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.util.concurrent.ExecutionException
Thrown by
Future.get() when the work failed; the cause is what it threw.-
Constructor Summary
ConstructorsConstructorDescriptionAn exception with no message or cause.ExecutionException(String message) An exception withmessage.ExecutionException(String message, Throwable cause) An exception withmessageand the failure that caused it.ExecutionException(Throwable cause) An exception wrapping the failure that caused it. -
Method Summary
Methods inherited from class Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ExecutionException
public ExecutionException()An exception with no message or cause. -
ExecutionException
An exception withmessage.- Parameters:
message- the detail message
-
ExecutionException
-
ExecutionException
An exception wrapping the failure that caused it.- Parameters:
cause- what the work threw
-