public final class BugReportExceptionHandler extends java.lang.Object implements java.lang.Thread.UncaughtExceptionHandler
Modifier and Type | Class and Description |
---|---|
private static class |
BugReportExceptionHandler.BugReporterThread |
Modifier and Type | Field and Description |
---|---|
private static BugReportExceptionHandler.BugReporterThread |
bugReporterThread |
private static int |
exceptionCounter |
private static boolean |
handlingInProgress |
private static boolean |
suppressExceptionDialogs |
Constructor and Description |
---|
BugReportExceptionHandler() |
Modifier and Type | Method and Description |
---|---|
private static void |
askForBugReport(java.lang.Throwable e) |
static boolean |
exceptionHandlingInProgress()
Determines if an exception is currently being handled
|
static java.net.URL |
getBugReportUrl(java.lang.String debugText)
Replies the URL to create a JOSM bug report with the given debug text
|
static UrlLabel |
getBugReportUrlLabel(java.lang.String debugText)
Replies the URL label to create a JOSM bug report with the given debug text
|
void |
handle(java.lang.Throwable t)
Handles the given throwable object
|
static void |
handleException(java.lang.Throwable e)
Handles the given exception
|
void |
uncaughtException(java.lang.Thread t,
java.lang.Throwable e) |
private static boolean handlingInProgress
private static volatile BugReportExceptionHandler.BugReporterThread bugReporterThread
private static int exceptionCounter
private static boolean suppressExceptionDialogs
public BugReportExceptionHandler()
public void uncaughtException(java.lang.Thread t, java.lang.Throwable e)
uncaughtException
in interface java.lang.Thread.UncaughtExceptionHandler
public void handle(java.lang.Throwable t)
t
- The throwable objectpublic static void handleException(java.lang.Throwable e)
e
- the exceptionprivate static void askForBugReport(java.lang.Throwable e)
public static boolean exceptionHandlingInProgress()
true
if an exception is currently being handled, false
otherwisepublic static java.net.URL getBugReportUrl(java.lang.String debugText)
debugText
- The debug text to provide uspublic static UrlLabel getBugReportUrlLabel(java.lang.String debugText)
debugText
- The debug text to provide us