ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/TimeoutException.java
Revision: 1.6
Committed: Sat Dec 27 19:26:26 2003 UTC (20 years, 5 months ago) by dl
Branch: MAIN
CVS Tags: JSR166_PFD
Changes since 1.5: +2 -2 lines
Log Message:
Headers reference Creative Commons

File Contents

# User Rev Content
1 dl 1.2 /*
2     * Written by Doug Lea with assistance from members of JCP JSR-166
3 dl 1.6 * Expert Group and released to the public domain, as explained at
4     * http://creativecommons.org/licenses/publicdomain
5 dl 1.2 */
6    
7 tim 1.1 package java.util.concurrent;
8    
9     /**
10 dl 1.5 * Exception thrown when a blocking operation times out. Blocking
11     * operations for which a timeout is specified need a means to
12     * indicate that the timeout has occurred. For many such operations it
13     * is possible to return a value that indicates timeout; when that is
14     * not possible or desirable then <tt>TimeoutException</tt> should be
15     * declared and thrown.
16 tim 1.1 *
17     * @since 1.5
18 dl 1.3 * @author Doug Lea
19 tim 1.1 */
20     public class TimeoutException extends Exception {
21 dl 1.4 private static final long serialVersionUID = 1900926677490660714L;
22    
23 tim 1.1 /**
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     }