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
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 Details
-
Method Details
-
uncaughtException
- Specified by:
uncaughtExceptionin interfaceThread.UncaughtExceptionHandler
-
handle
-
handleException
-
getCause
-
showErrorDialog
-