|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.util.ChainingUncaughtExceptionHandler
public final class ChainingUncaughtExceptionHandler
Provides the ability to call more than one JDevUncaughtExceptionHandler whenever an uncaught exception has occurred. The registered exception handlers will be called in priority order, with priorities ranging from 1 (highest) to 3 (lowest). If two handlers have the same priority, the one that was registered first will be called first.
Constructor Summary | |
---|---|
ChainingUncaughtExceptionHandler()
|
Method Summary | |
---|---|
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). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChainingUncaughtExceptionHandler()
Method Detail |
---|
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.UncaughtExceptionHandler
t
- The thread on which the exception occurrede
- The uncaught exception
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |