- All Implemented Interfaces:
public class ThreadDeath extends ErrorAn instance of
ThreadDeathis thrown in the victim thread when the (deprecated)
Thread.stop()method is invoked.
An application should catch instances of this class only if it must clean up after being terminated asynchronously. If
ThreadDeathis caught by a method, it is important that it be rethrown so that the thread actually dies.
The top-level error handler does not print out a message if
ThreadDeathis never caught.
ThreadDeathis specifically a subclass of
Exception, even though it is a "normal occurrence", because many applications catch all occurrences of
Exceptionand then discard the exception.
- See Also:
- Serialized Form
Constructors Constructor Description
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait