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/03/31 03:50:08 $ |
20 |
* @editor $Author: dholmes $ |
21 |
*/ |
22 |
public class TimeoutException extends Exception { |
23 |
/** |
24 |
* Constructs a <tt>TimeoutException</tt> with no specified detail |
25 |
* message. |
26 |
*/ |
27 |
public TimeoutException() {} |
28 |
|
29 |
/** |
30 |
* Constructs a <tt>TimeoutException</tt> with the specified detail |
31 |
* message. |
32 |
* |
33 |
* @param message the detail message |
34 |
*/ |
35 |
public TimeoutException(String message) { |
36 |
super(message); |
37 |
} |
38 |
} |