ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/CancellationException.java
Revision: 1.3
Committed: Tue Jun 24 14:34:47 2003 UTC (20 years, 11 months ago) by dl
Branch: MAIN
CVS Tags: JSR166_CR1, JSR166_PRELIMINARY_TEST_RELEASE_2
Changes since 1.2: +3 -2 lines
Log Message:
Added missing javadoc tags; minor reformatting

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 dl 1.3 * @revised $Date: 2003/05/27 18:14:39 $
20     * @editor $Author: dl $
21     * @author Doug Lea
22 tim 1.1 */
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     }