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 |
*/ |
6 |
|
7 |
package java.util.concurrent; |
8 |
|
9 |
/** |
10 |
* Exception thrown when a blocking operation times out. |
11 |
* <p> |
12 |
* Blocking operations for which a timeout is specified need a means to |
13 |
* indicate that the timeout has occurred. For many such operations it is |
14 |
* possible to return a value that indicates timeout; when that is not |
15 |
* possible then <tt>TimeoutException</tt> should be declared and thrown. |
16 |
* |
17 |
* @since 1.5 |
18 |
* @spec JSR-166 |
19 |
* @revised $Date: 2003/05/27 18:14:40 $ |
20 |
* @editor $Author: dl $ |
21 |
* @author Doug Lea |
22 |
*/ |
23 |
public class TimeoutException extends Exception { |
24 |
/** |
25 |
* Constructs a <tt>TimeoutException</tt> with no specified detail |
26 |
* message. |
27 |
*/ |
28 |
public TimeoutException() {} |
29 |
|
30 |
/** |
31 |
* Constructs a <tt>TimeoutException</tt> with the specified detail |
32 |
* message. |
33 |
* |
34 |
* @param message the detail message |
35 |
*/ |
36 |
public TimeoutException(String message) { |
37 |
super(message); |
38 |
} |
39 |
} |