public class EDTExceptionUtil extends Object implements Thread.UncaughtExceptionHandler
 To use, call install(), (optionally) provide your application with setApp(Application)
 and (optionally) configure your own error reporter with 
 setFatalErrorReporter(FatalErrorReporter).
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
EDTExceptionUtil.DefaultFatalErrorReporter
Default implementation of the error reporter,
 logs to System.err and tries to write the exception a file in the user directory. 
 | 
static interface  | 
EDTExceptionUtil.FatalErrorReporter
Interface to provide error reporting 
 | 
| Constructor and Description | 
|---|
EDTExceptionUtil()
The EDT exception handling expects a public empty constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
handle(Throwable pThrowable)
This method gets called when an Exception is caught in the EDT. 
 | 
static void | 
install()
installs the exception handler by registering the uncaught exception handler. 
 | 
static void | 
setApp(Application pApp)
Set back link to the application. 
 | 
static void | 
setFatalErrorReporter(EDTExceptionUtil.FatalErrorReporter pFatalErrorReporter)
Sets the fatal error reporter which is used to report an error. 
 | 
static void | 
setVersion(String pDumpPrefix,
          String pVersion)
Set application version string. 
 | 
void | 
uncaughtException(Thread t,
                 Throwable pThrowable) | 
public EDTExceptionUtil()
public static void install()
public static void setFatalErrorReporter(EDTExceptionUtil.FatalErrorReporter pFatalErrorReporter)
pFatalErrorReporter - the reporter, must not be nullpublic static void setApp(Application pApp)
Application.doStop() will be called.pApp - the application we are associatedpublic static void setVersion(String pDumpPrefix, String pVersion)
pDumpPrefix - for the dump filepVersion - a version string for the applicationpublic void uncaughtException(Thread t, Throwable pThrowable)
uncaughtException in interface Thread.UncaughtExceptionHandlerpublic void handle(Throwable pThrowable)
pThrowable - caught ExceptionCopyright © 2017 Jürgen Zeller (privat). All rights reserved.