Merge git+ssh://davetron5000@repo.or.cz/srv/git/vimdoclet
[vimdoclet.git] / sample / java.lang.Thread.UncaughtExceptionHandler.txt
blob2b916cfa72ed2f1e5ca67c7a135bcb2984a40288
1 *java.lang.Thread.UncaughtExceptionHandler* *Thread.UncaughtExceptionHandler* In
3 public static interface interface Thread.UncaughtExceptionHandler
6 |java.lang.Thread.UncaughtExceptionHandler_Description|
7 |java.lang.Thread.UncaughtExceptionHandler_Fields|
8 |java.lang.Thread.UncaughtExceptionHandler_Constructors|
9 |java.lang.Thread.UncaughtExceptionHandler_Methods|
11 ================================================================================
13 *java.lang.Thread.UncaughtExceptionHandler_Methods*
14 |java.lang.Thread.UncaughtExceptionHandler.uncaughtException(Thread,Throwable)|
16 *java.lang.Thread.UncaughtExceptionHandler_Description*
18 Interface for handlers invoked when a Thread abruptly terminates due to an 
19 uncaught exception. When a thread is about to terminate due to an uncaught 
20 exception the Java Virtual Machine will query the thread for its 
21 UncaughtExceptionHandler using (|java.lang.Thread|) and will invoke the 
22 handler's uncaughtException method, passing the thread and the exception as 
23 arguments. If a thread has not had its UncaughtExceptionHandler explicitly set, 
24 then its ThreadGroup object acts as its UncaughtExceptionHandler. If the 
25 ThreadGroup object has no special requirements for dealing with the exception, 
26 it can forward the invocation to the default uncaught exception 
27 handler(|java.lang.Thread.UncaughtExceptionHandler|) . 
30 *java.lang.Thread.UncaughtExceptionHandler.uncaughtException(Thread,Throwable)*
32 public void uncaughtException(
33   java.lang.Thread t,
34   java.lang.Throwable e)
36 Method invoked when the given thread terminates due to the given uncaught 
37 exception. Any exception thrown by this method will be ignored by the Java 
38 Virtual Machine. 
40     t - the thread 
41     e - the exception