1 |
/* |
2 |
* @(#)CancellationException.java |
3 |
*/ |
4 |
|
5 |
package java.util.concurrent; |
6 |
|
7 |
/** |
8 |
* Indicates that the result of a value-producing task, such as a |
9 |
* {@link FutureTask}, cannot be retrieved because the task was cancelled. |
10 |
* |
11 |
* @since 1.5 |
12 |
* @see Cancellable |
13 |
* @see FutureTask#get |
14 |
* @see FutureTask#get(long, TimeUnit) |
15 |
* |
16 |
* @spec JSR-166 |
17 |
* @revised $Date: 2003/02/26 10:48:09 $ |
18 |
* @editor $Author: jozart $ |
19 |
*/ |
20 |
public class CancellationException extends IllegalStateException { |
21 |
|
22 |
/** |
23 |
* Constructs a <tt>CancellationException</tt> with no detail message. |
24 |
*/ |
25 |
public CancellationException() {} |
26 |
|
27 |
/** |
28 |
* Constructs a <tt>CancellationException</tt> with the specified detail |
29 |
* message. |
30 |
* |
31 |
* @param message the detail message |
32 |
*/ |
33 |
public CancellationException(String message) { |
34 |
super(message); |
35 |
} |
36 |
} |