ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/CancellationException.java
Revision: 1.2
Committed: Tue May 27 18:14:39 2003 UTC (21 years ago) by dl
Branch: MAIN
CVS Tags: JSR166_PRELIMINARY_TEST_RELEASE_1, JSR166_PRERELEASE_0_1
Changes since 1.1: +3 -1 lines
Log Message:
re-check-in initial implementations

File Contents

# User Rev Content
1 tim 1.1 /*
2 dl 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 tim 1.1 */
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     }