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