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/05/27 18:14:39 $ |
20 |
* @editor $Author: dl $ |
21 |
* @author Doug Lea |
22 |
*/ |
23 |
public class CancellationException extends IllegalStateException { |
24 |
|
25 |
/** |
26 |
* Constructs a <tt>CancellationException</tt> with no detail message. |
27 |
*/ |
28 |
public CancellationException() {} |
29 |
|
30 |
/** |
31 |
* Constructs a <tt>CancellationException</tt> with the specified detail |
32 |
* message. |
33 |
* |
34 |
* @param message the detail message |
35 |
*/ |
36 |
public CancellationException(String message) { |
37 |
super(message); |
38 |
} |
39 |
} |