Class ExecutionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.util.concurrent.ExecutionException

public class ExecutionException extends Exception
Thrown by Future.get() when the work failed; the cause is what it threw.
  • Constructor Details

    • ExecutionException

      public ExecutionException()
      An exception with no message or cause.
    • ExecutionException

      public ExecutionException(String message)
      An exception with message.
      Parameters:
      message - the detail message
    • ExecutionException

      public ExecutionException(String message, Throwable cause)
      An exception with message and the failure that caused it.
      Parameters:
      message - the detail message
      cause - what the work threw
    • ExecutionException

      public ExecutionException(Throwable cause)
      An exception wrapping the failure that caused it.
      Parameters:
      cause - what the work threw