ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/ExecutionException.java
Revision: 1.9
Committed: Tue Mar 15 19:47:03 2011 UTC (13 years, 2 months ago) by jsr166
Branch: MAIN
CVS Tags: release-1_7_0
Changes since 1.8: +1 -1 lines
Log Message:
Update Creative Commons license URL in legal notices

File Contents

# User Rev Content
1 tim 1.1 /*
2 dl 1.2 * Written by Doug Lea with assistance from members of JCP JSR-166
3 dl 1.7 * Expert Group and released to the public domain, as explained at
4 jsr166 1.9 * http://creativecommons.org/publicdomain/zero/1.0/
5 tim 1.1 */
6    
7     package java.util.concurrent;
8    
9     /**
10 dl 1.3 * Exception thrown when attempting to retrieve the result of a task
11 dl 1.4 * that aborted by throwing an exception. This exception can be
12     * inspected using the {@link #getCause()} method.
13 tim 1.1 *
14 dl 1.6 * @see Future
15 tim 1.1 * @since 1.5
16 dl 1.3 * @author Doug Lea
17 tim 1.1 */
18     public class ExecutionException extends Exception {
19 dl 1.5 private static final long serialVersionUID = 7830266012832686185L;
20 tim 1.1
21     /**
22 jsr166 1.8 * Constructs an <tt>ExecutionException</tt> with no detail message.
23 tim 1.1 * The cause is not initialized, and may subsequently be
24     * initialized by a call to {@link #initCause(Throwable) initCause}.
25     */
26     protected ExecutionException() { }
27    
28     /**
29 jsr166 1.8 * Constructs an <tt>ExecutionException</tt> with the specified detail
30 tim 1.1 * message. The cause is not initialized, and may subsequently be
31     * initialized by a call to {@link #initCause(Throwable) initCause}.
32     *
33     * @param message the detail message
34     */
35     protected ExecutionException(String message) {
36     super(message);
37     }
38    
39     /**
40 jsr166 1.8 * Constructs an <tt>ExecutionException</tt> with the specified detail
41 tim 1.1 * message and cause.
42     *
43     * @param message the detail message
44     * @param cause the cause (which is saved for later retrieval by the
45     * {@link #getCause()} method)
46     */
47     public ExecutionException(String message, Throwable cause) {
48     super(message, cause);
49     }
50    
51     /**
52 jsr166 1.8 * Constructs an <tt>ExecutionException</tt> with the specified cause.
53 tim 1.1 * The detail message is set to:
54     * <pre>
55     * (cause == null ? null : cause.toString())</pre>
56     * (which typically contains the class and detail message of
57     * <tt>cause</tt>).
58     *
59     * @param cause the cause (which is saved for later retrieval by the
60     * {@link #getCause()} method)
61     */
62     public ExecutionException(Throwable cause) {
63     super(cause);
64     }
65     }