public final class ChainingUncaughtExceptionHandler
extends java.lang.Object
implements java.lang.Thread.UncaughtExceptionHandler
| Constructor and Description |
|---|
ChainingUncaughtExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
static void |
registerHandler(JDevUncaughtExceptionHandler handler,
int priority)
Registers a handler along with its priority, so it can (if necessary) be
called when an uncaught exception is detected.
|
void |
uncaughtException(java.lang.Thread t,
java.lang.Throwable e)
Iterates through all the registered uncaught exception handlers
in priority order, giving each of them a chance to handle the exception
until one of them actually handles it (such that a call to its wasHandled()
method returns true).
|
public static void registerHandler(JDevUncaughtExceptionHandler handler, int priority)
handler - The handler to registerpublic void uncaughtException(java.lang.Thread t,
java.lang.Throwable e)
uncaughtException in interface java.lang.Thread.UncaughtExceptionHandlert - The thread on which the exception occurrede - The uncaught exception