ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/TimeoutException.java
Revision: 1.2
Committed: Tue May 27 18:14:40 2003 UTC (21 years ago) by dl
Branch: MAIN
CVS Tags: JSR166_PRELIMINARY_TEST_RELEASE_1, JSR166_PRERELEASE_0_1
Changes since 1.1: +6 -0 lines
Log Message:
re-check-in initial implementations

File Contents

# Content
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 }