1. /*
  2. * @(#)ThreadDeath.java 1.12 00/02/02
  3. *
  4. * Copyright 1995-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.lang;
  11. /**
  12. * An instance of <code>ThreadDeath</code> is thrown in the victim
  13. * thread when the <code>stop</code> method with zero arguments in
  14. * class <code>Thread</code> is called.
  15. * <p>
  16. * An application should catch instances of this class only if it
  17. * must clean up after being terminated asynchronously. If
  18. * <code>ThreadDeath</code> is caught by a method, it is important
  19. * that it be rethrown so that the thread actually dies.
  20. * <p>
  21. * The top-level error handler does not print out a message if
  22. * <code>ThreadDeath</code> is never caught.
  23. * <p>
  24. * The class <code>ThreadDeath</code> is specifically a subclass of
  25. * <code>Error</code> rather than <code>Exception</code>, even though
  26. * it is a "normal occurrence", because many applications
  27. * catch all occurrences of <code>Exception</code> and then discard
  28. * the exception.
  29. *
  30. * @author unascribed
  31. * @version 1.12, 02/02/00
  32. * @see java.lang.Thread#stop()
  33. * @since JDK1.0
  34. */
  35. public class ThreadDeath extends Error {}