Class ApplicationExceptionHandler
- java.lang.Object
-
- org.nuiton.jaxx.application.swing.util.ApplicationExceptionHandler
-
- All Implemented Interfaces:
Thread.UncaughtExceptionHandler
public class ApplicationExceptionHandler extends Object implements Thread.UncaughtExceptionHandler
Global exception handler. Catch all application uncaught and display it in a custom JoptionPane or JXErrorPane. See http://stackoverflow.com/a/4448569/1165234 for details.- Since:
- 2.8
- Author:
- Tony Chemit - chemit@codelutin.com
-
-
Constructor Summary
Constructors Constructor Description ApplicationExceptionHandler(ApplicationErrorHelper errorHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ThrowablegetCause(Throwable ex)voidhandle(Throwable thrown)protected voidhandleException(String tname, Throwable ex)voidshowErrorDialog(String message, Throwable cause)voiduncaughtException(Thread t, Throwable ex)
-
-
-
Constructor Detail
-
ApplicationExceptionHandler
public ApplicationExceptionHandler(ApplicationErrorHelper errorHelper)
-
-
Method Detail
-
uncaughtException
public void uncaughtException(Thread t, Throwable ex)
- Specified by:
uncaughtExceptionin interfaceThread.UncaughtExceptionHandler
-
handle
public void handle(Throwable thrown)
-
-