KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > util > concurrent > TimeoutException


1 /*
2  * @(#)TimeoutException.java 1.3 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.util.concurrent;
9
10 /**
11  * Exception thrown when a blocking operation times out. Blocking
12  * operations for which a timeout is specified need a means to
13  * indicate that the timeout has occurred. For many such operations it
14  * is possible to return a value that indicates timeout; when that is
15  * not possible or desirable then <tt>TimeoutException</tt> should be
16  * declared and thrown.
17  *
18  * @since 1.5
19  * @author Doug Lea
20  */

21 public class TimeoutException extends Exception JavaDoc {
22     private static final long serialVersionUID = 1900926677490660714L;
23
24     /**
25      * Constructs a <tt>TimeoutException</tt> with no specified detail
26      * message.
27      */

28     public TimeoutException() {}
29
30     /**
31      * Constructs a <tt>TimeoutException</tt> with the specified detail
32      * message.
33      *
34      * @param message the detail message
35      */

36     public TimeoutException(String JavaDoc message) {
37         super(message);
38     }
39 }
40
Popular Tags