KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nightlabs > rcp > exceptionhandler > IExceptionHandler


1 /*
2  * Created on Sep 23, 2004
3  */

4 package com.nightlabs.rcp.exceptionhandler;
5
6 /**
7  * Simple Interface for exception handling. Implement this to extend
8  * extension-point "com.nightlabs.ipanema.rcp.eventloopexceptionhandler".
9  *
10  * @author Alexander Bieber <alex[AT]nightlabs[DOT]de>
11  *
12  */

13 public interface IExceptionHandler {
14     /**
15      * Method called to handle uncaught exceptions.
16      * It will always be executed on the GUI thread.
17      *
18      * @param thread The thread the exception was thrown on.
19      * @param thrownException The Exception actually thrown.
20      * @param triggerException The Exception exception that caused the caller
21      * to pick this particular handler so this always should be
22      * the Exception the handler was registered on
23      */

24     public void handleException(Thread JavaDoc thread, Throwable JavaDoc thrownException, Throwable JavaDoc triggerException);
25 }
26
Popular Tags