home *** CD-ROM | disk | FTP | other *** search
/ Java 1.2 How-To / JavaHowTo.iso / 3rdParty / jbuilder / unsupported / JDK1.2beta3 / SOURCE / SRC.ZIP / java / lang / InterruptedException.java < prev    next >
Encoding:
Java Source  |  1998-03-20  |  1.4 KB  |  51 lines

  1. /*
  2.  * @(#)InterruptedException.java    1.9 98/03/18
  3.  *
  4.  * Copyright 1995-1997 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  *
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.lang;
  16.  
  17. /**
  18.  * Thrown when a thread is waiting, sleeping, or otherwise paused for
  19.  * a long time and another thread interrupts it using the
  20.  * <code>interrupt</code>  method in class <code>Thread</code>. 
  21.  *
  22.  * @author  Frank Yellin
  23.  * @version 1.9, 03/18/98
  24.  * @see     java.lang.Object#wait()
  25.  * @see     java.lang.Object#wait(long)
  26.  * @see     java.lang.Object#wait(long, int)
  27.  * @see     java.lang.Thread#sleep(long)
  28.  * @see     java.lang.Thread#interrupt()
  29.  * @see     java.lang.Thread#interrupted()
  30.  * @since   JDK1.0
  31.  */
  32. public
  33. class InterruptedException extends Exception {
  34.     /**
  35.      * Constructs an <code>InterruptedException</code> with no detail  message. 
  36.      */
  37.     public InterruptedException() {
  38.     super();
  39.     }
  40.  
  41.     /**
  42.      * Constructs an <code>InterruptedException</code> with the 
  43.      * specified detail message. 
  44.      *
  45.      * @param   s   the detail message.
  46.      */
  47.     public InterruptedException(String s) {
  48.     super(s);
  49.     }
  50. }
  51.