ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/ExecutionException.java
Revision: 1.1
Committed: Wed May 14 21:30:46 2003 UTC (21 years ago) by tim
Branch: MAIN
Log Message:
Moved main source rooted at . to ./src/main
Moved test source rooted at ./etc/testcases to ./src/test

File Contents

# User Rev Content
1 tim 1.1 /*
2     * @(#)ExecutionException.java
3     */
4    
5     package java.util.concurrent;
6    
7     /**
8     * Thrown when attempting to retrieve the result of a task that aborted.
9     * @fixme THROWN BY WHO?? MENTION THAT THIS IS WRAPPER FOR REAL CAUSE
10     *
11     * @since 1.5
12     * @see Future
13     *
14     * @spec JSR-166
15     * @revised $Date: 2003/02/26 10:48:09 $
16     * @editor $Author: jozart $
17     */
18     public class ExecutionException extends Exception {
19    
20     /**
21     * Constructs a <tt>ExecutionException</tt> with no detail message.
22     * The cause is not initialized, and may subsequently be
23     * initialized by a call to {@link #initCause(Throwable) initCause}.
24     */
25     protected ExecutionException() { }
26    
27     /**
28     * Constructs a <tt>ExecutionException</tt> with the specified detail
29     * message. The cause is not initialized, and may subsequently be
30     * initialized by a call to {@link #initCause(Throwable) initCause}.
31     *
32     * @param message the detail message
33     */
34     protected ExecutionException(String message) {
35     super(message);
36     }
37    
38     /**
39     * Constructs a <tt>ExecutionException</tt> with the specified detail
40     * message and cause.
41     *
42     * @param message the detail message
43     * @param cause the cause (which is saved for later retrieval by the
44     * {@link #getCause()} method)
45     */
46     public ExecutionException(String message, Throwable cause) {
47     super(message, cause);
48     }
49    
50     /**
51     * Constructs a <tt>ExecutionException</tt> with the specified cause.
52     * The detail message is set to:
53     * <pre>
54     * (cause == null ? null : cause.toString())</pre>
55     * (which typically contains the class and detail message of
56     * <tt>cause</tt>).
57     *
58     * @param cause the cause (which is saved for later retrieval by the
59     * {@link #getCause()} method)
60     */
61     public ExecutionException(Throwable cause) {
62     super(cause);
63     }
64     }