Class java.lang.ThreadDeath
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.lang.ThreadDeath

java.lang.Object
|
   +----java.lang.Throwable
|
           +----java.lang.Error
|
                   +----java.lang.ThreadDeath

public class ThreadDeath
extends Error
An instance of ThreadDeath is thrown in the victim thread when thread.stop() is called. This is not a subclass of Exception, but rather a subclass of Error because too many people already catch Exception. Instances of this class should be caught explicitly only if you are interested in cleaning up when being asynchronously terminated. If ThreadDeath is caught, it is important to rethrow the object so that the Thread will actually die. The top-level error handler will not print out a message if ThreadDeath falls through.

Constructor Index

 o ThreadDeath()

Constructors

 o ThreadDeath
public ThreadDeath()

All Packages  Class Hierarchy  This Package  Previous  Next  Index