allensoft.bug
Class DefaultCrashHandler
java.lang.Object
|
+--allensoft.bug.CrashHandler
|
+--allensoft.bug.DefaultCrashHandler
- public class DefaultCrashHandler
- extends CrashHandler
Handles crashes by displaying a CrahReportDialog to inform the user
and allowing the user to submitt a bug report if a BugSubmitter has
been supplied during construction.
Constructor Summary |
DefaultCrashHandler()
Creates a new DefaultCrashHandler that displays crashes and allows trhe user
to save crash reports to a text file. |
DefaultCrashHandler(BugSubmitter bugSubmitter)
Creates a new DefaultCrashHandler that displays crashes and allows
the user to submit crash reports to the supplied bug submitter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultCrashHandler
public DefaultCrashHandler(BugSubmitter bugSubmitter)
- Creates a new DefaultCrashHandler that displays crashes and allows
the user to submit crash reports to the supplied bug submitter.
DefaultCrashHandler
public DefaultCrashHandler()
- Creates a new DefaultCrashHandler that displays crashes and allows trhe user
to save crash reports to a text file.
handleCrash
public void handleCrash(java.lang.Throwable t)
- Description copied from class:
CrashHandler
- Handles a crash in a thread that is the result of the supplied Throwable object.
This would normally be an Error or a RuntimeException.
- Overrides:
handleCrash
in class CrashHandler
createCrashReport
protected CrashReport createCrashReport(java.lang.Throwable t)
- Creates a crash report for the supplied exception/error.
createCrashReportDialog
protected CrashReportDialog createCrashReportDialog(CrashReport crashReport,
BugSubmitter bugSubmitter)
- Creates the dialog used to display the crash report to the user.
getBugSubmitter
public BugSubmitter getBugSubmitter()
- Gets the bug submitter used to submit crash reports.
setBugSubmitter
public void setBugSubmitter(BugSubmitter submitter)
- Sets the bug submitter used to submit crash reports.