| CancellationException.java |
1 /*
2 * %W% %E%
3 *
4 * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
5 * ORACLE 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 {
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 message) {
33 super(message);
34 }
35 }
36