ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/TimeoutException.java
Revision: 1.1
Committed: Wed May 14 21:30:48 2003 UTC (21 years ago) by tim
Branch: MAIN
Log Message:
Moved main source rooted at . to ./src/main
Moved test source rooted at ./etc/testcases to ./src/test

File Contents

# User Rev Content
1 tim 1.1 package java.util.concurrent;
2    
3     /**
4     * Exception thrown when a blocking operation times out.
5     * <p>
6     * Blocking operations for which a timeout is specified need a means to
7     * indicate that the timeout has occurred. For many such operations it is
8     * possible to return a value that indicates timeout; when that is not
9     * possible then <tt>TimeoutException</tt> should be declared and thrown.
10     *
11     * @since 1.5
12     * @spec JSR-166
13     * @revised $Date: 2003/03/31 03:50:08 $
14     * @editor $Author: dholmes $
15     */
16     public class TimeoutException extends Exception {
17     /**
18     * Constructs a <tt>TimeoutException</tt> with no specified detail
19     * message.
20     */
21     public TimeoutException() {}
22    
23     /**
24     * Constructs a <tt>TimeoutException</tt> with the specified detail
25     * message.
26     *
27     * @param message the detail message
28     */
29     public TimeoutException(String message) {
30     super(message);
31     }
32     }