ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/CancellationException.java
Revision: 1.1
Committed: Wed May 14 21:30:45 2003 UTC (21 years ago) by tim
Branch: MAIN
Log Message:
Moved main source rooted at . to ./src/main
Moved test source rooted at ./etc/testcases to ./src/test

File Contents

# Content
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 }