ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/TimeoutException.java
Revision: 1.8
Committed: Wed Jan 16 01:59:48 2013 UTC (11 years, 4 months ago) by jsr166
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +3 -3 lines
Log Message:
<tt> -> {@code

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 jsr166 1.7 * http://creativecommons.org/publicdomain/zero/1.0/
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 jsr166 1.8 * not possible or desirable then {@code TimeoutException} should be
15 dl 1.5 * 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 jsr166 1.8 * Constructs a {@code TimeoutException} with no specified detail
25 tim 1.1 * message.
26     */
27     public TimeoutException() {}
28    
29     /**
30 jsr166 1.8 * Constructs a {@code TimeoutException} with the specified detail
31 tim 1.1 * message.
32     *
33     * @param message the detail message
34     */
35     public TimeoutException(String message) {
36     super(message);
37     }
38     }