/* * @(#)ExecutionException.java */ package java.util.concurrent; /** * Thrown when attempting to retrieve the result of a task that aborted. * @fixme THROWN BY WHO?? MENTION THAT THIS IS WRAPPER FOR REAL CAUSE * * @since 1.5 * @see Future * * @spec JSR-166 * @revised $Date: 2003/05/14 21:30:46 $ * @editor $Author: tim $ */ public class ExecutionException extends Exception { /** * Constructs a ExecutionException with no detail message. * The cause is not initialized, and may subsequently be * initialized by a call to {@link #initCause(Throwable) initCause}. */ protected ExecutionException() { } /** * Constructs a ExecutionException with the specified detail * message. The cause is not initialized, and may subsequently be * initialized by a call to {@link #initCause(Throwable) initCause}. * * @param message the detail message */ protected ExecutionException(String message) { super(message); } /** * Constructs a ExecutionException with the specified detail * message and cause. * * @param message the detail message * @param cause the cause (which is saved for later retrieval by the * {@link #getCause()} method) */ public ExecutionException(String message, Throwable cause) { super(message, cause); } /** * Constructs a 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). * * @param cause the cause (which is saved for later retrieval by the * {@link #getCause()} method) */ public ExecutionException(Throwable cause) { super(cause); } }