home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 November / Chip_1998-11_cd.bin / tema / Cafe / main.bin / ThreadDeath.java < prev    next >
Text File  |  1997-05-20  |  2KB  |  51 lines

  1. /*
  2.  * @(#)ThreadDeath.java    1.7 97/01/20
  3.  * 
  4.  * Copyright (c) 1995, 1996 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * This software is the confidential and proprietary information of Sun
  7.  * Microsystems, Inc. ("Confidential Information").  You shall not
  8.  * disclose such Confidential Information and shall use it only in
  9.  * accordance with the terms of the license agreement you entered into
  10.  * with Sun.
  11.  * 
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  13.  * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  14.  * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  15.  * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  16.  * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  17.  * THIS SOFTWARE OR ITS DERIVATIVES.
  18.  * 
  19.  * CopyrightVersion 1.1_beta
  20.  * 
  21.  */
  22.  
  23. package java.lang;
  24.  
  25. /**
  26.  * An instance of <code>ThreadDeath</code> is thrown in the victim 
  27.  * thread when the <code>stop</code> method with zero arguments in 
  28.  * class <code>Thread</code> is called. 
  29.  * <p>
  30.  * An application should catch instances of this class only if it 
  31.  * must clean up after being terminated asynchronously. If 
  32.  * <code>ThreadDeath</code> is caught by a method, it is important 
  33.  * that it be rethrown so that the thread actually dies. 
  34.  * <p>
  35.  * The top-level error handler does not print out a message if 
  36.  * <code>ThreadDeath</code> is never caught. 
  37.  * <p>
  38.  * The class <code>ThreadDeath</code> is specifically a subclass of 
  39.  * <code>Error</code> rather than <code>Exception</code>, even though 
  40.  * it is a "normal occurrence", because many applications 
  41.  * catch all occurrences of <code>Exception</code> and then discard 
  42.  * the exception. 
  43.  *
  44.  * @author unascribed
  45.  * @version 1.7, 01/20/97
  46.  * @see     java.lang.Thread#stop()
  47.  * @since   JDK1.0
  48.  */
  49.  
  50. public class ThreadDeath extends Error {}
  51.