1   /*
2    * %W% %E%
3    *
4    * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
5    * ORACLE 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 {
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 message) {
37          super(message);
38      }
39  }
40