ThreadDeath


ThreadDeath java.lang

Java 1.0 serializable error

Signals that a thread should terminate. This error is thrown in a thread when the Thread.stop( ) method is called for that thread. This is an unusual Error type that simply causes a thread to be terminated , but does not print an error message or cause the interpreter to exit. You can catch THReadDeath errors to do any necessary cleanup for a thread, but if you do, you must rethrow the error so that the thread actually terminates.

Figure 10-64. java.lang.ThreadDeath

 public class  ThreadDeath  extends Error {  // Public Constructors  public  ThreadDeath  ( );   } 



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net