ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/TimeoutException.java
Revision: 1.4
Committed: Mon Aug 25 19:27:58 2003 UTC (20 years, 9 months ago) by dl
Branch: MAIN
Changes since 1.3: +3 -1 lines
Log Message:
serialVersionUIDs

File Contents

# User Rev Content
1 dl 1.2 /*
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 tim 1.1 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 dl 1.4 * @revised $Date: 2003/06/24 14:34:49 $
20 dl 1.3 * @editor $Author: dl $
21     * @author Doug Lea
22 tim 1.1 */
23     public class TimeoutException extends Exception {
24 dl 1.4 private static final long serialVersionUID = 1900926677490660714L;
25    
26 tim 1.1 /**
27     * Constructs a <tt>TimeoutException</tt> with no specified detail
28     * message.
29     */
30     public TimeoutException() {}
31    
32     /**
33     * Constructs a <tt>TimeoutException</tt> with the specified detail
34     * message.
35     *
36     * @param message the detail message
37     */
38     public TimeoutException(String message) {
39     super(message);
40     }
41     }