Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


oracle.ide.util
Class ChainingUncaughtExceptionHandler

java.lang.Object
  extended by oracle.ide.util.ChainingUncaughtExceptionHandler

All Implemented Interfaces:
java.lang.Thread.UncaughtExceptionHandler

public final class ChainingUncaughtExceptionHandler
extends java.lang.Object
implements java.lang.Thread.UncaughtExceptionHandler

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

ChainingUncaughtExceptionHandler

public ChainingUncaughtExceptionHandler()

Method Detail

registerHandler

public 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.
Parameters:
handler - The handler to register

uncaughtException

public 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).
Specified by:
uncaughtException in interface java.lang.Thread.UncaughtExceptionHandler
Parameters:
t - The thread on which the exception occurred
e - The uncaught exception

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


Copyright © 1997, 2012, Oracle. All rights reserved.