home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / sybase / starbuck / java.z / InterruptedException.java < prev    next >
Text File  |  1996-05-03  |  2KB  |  50 lines

  1. /*
  2.  * @(#)InterruptedException.java    1.5 95/09/08  
  3.  *
  4.  * Copyright (c) 1995 Sun Microsystems, Inc. All Rights Reserved.
  5.  *
  6.  * Permission to use, copy, modify, and distribute this software
  7.  * and its documentation for NON-COMMERCIAL purposes and without
  8.  * fee is hereby granted provided that this copyright notice
  9.  * appears in all copies. Please refer to the file "copyright.html"
  10.  * for further important copyright and licensing information.
  11.  *
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
  13.  * THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
  14.  * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
  15.  * PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR
  16.  * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
  17.  * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
  18.  */
  19.  
  20. package java.lang;
  21.  
  22. /**
  23.  * An exception indicated that some thread has interrupted this thread.
  24.  * <p>
  25.  *
  26.  * @see Thread#interrupt
  27.  * @see Thread#interrupted
  28.  * @version     1.5, 08 Sep 1995
  29.  * @author      Frank Yellin
  30.  */
  31. public
  32. class InterruptedException extends Exception {
  33.     /**
  34.      * Constructs an InterruptedException with no detail message.
  35.      * A detail message is a String that describes this particular exception.
  36.      */
  37.     public InterruptedException() {
  38.     super();
  39.     }
  40.  
  41.     /**
  42.      * Constructs an InterruptedException with the specified detail message.
  43.      * A detail message is a String that describes this particular exception.
  44.      * @param s the detail message
  45.      */
  46.     public InterruptedException(String s) {
  47.     super(s);
  48.     }
  49. }
  50.