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