KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > util > concurrent > CancellationException


1 /*
2  * @(#)CancellationException.java 1.4 04/01/12
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.util.concurrent;
9
10 /**
11  * Exception indicating that the result of a value-producing task,
12  * such as a {@link FutureTask}, cannot be retrieved because the task
13  * was cancelled.
14  *
15  * @since 1.5
16  * @author Doug Lea
17  */

18 public class CancellationException extends IllegalStateException JavaDoc {
19     private static final long serialVersionUID = -9202173006928992231L;
20
21     /**
22      * Constructs a <tt>CancellationException</tt> with no detail message.
23      */

24     public CancellationException() {}
25
26     /**
27      * Constructs a <tt>CancellationException</tt> with the specified detail
28      * message.
29      *
30      * @param message the detail message
31      */

32     public CancellationException(String JavaDoc message) {
33         super(message);
34     }
35 }
36
Popular Tags