1 |
/* |
2 |
* Written by Doug Lea with assistance from members of JCP JSR-166 |
3 |
* Expert Group and released to the public domain. Use, modify, and |
4 |
* redistribute this code in any way without acknowledgement. |
5 |
*/ |
6 |
|
7 |
package java.util.concurrent; |
8 |
|
9 |
/** |
10 |
* Indicates that the result of a value-producing task, such as a |
11 |
* {@link FutureTask}, cannot be retrieved because the task was cancelled. |
12 |
* |
13 |
* @since 1.5 |
14 |
* @see Cancellable |
15 |
* @see FutureTask#get |
16 |
* @see FutureTask#get(long, TimeUnit) |
17 |
* |
18 |
* @spec JSR-166 |
19 |
* @revised $Date: 2003/06/24 14:34:47 $ |
20 |
* @editor $Author: dl $ |
21 |
* @author Doug Lea |
22 |
*/ |
23 |
public class CancellationException extends IllegalStateException { |
24 |
private static final long serialVersionUID = -9202173006928992231L; |
25 |
|
26 |
/** |
27 |
* Constructs a <tt>CancellationException</tt> with no detail message. |
28 |
*/ |
29 |
public CancellationException() {} |
30 |
|
31 |
/** |
32 |
* Constructs a <tt>CancellationException</tt> with the specified detail |
33 |
* message. |
34 |
* |
35 |
* @param message the detail message |
36 |
*/ |
37 |
public CancellationException(String message) { |
38 |
super(message); |
39 |
} |
40 |
} |