Class BugReportExceptionHandler
- java.lang.Object
-
- org.openstreetmap.josm.tools.bugreport.BugReportExceptionHandler
-
- All Implemented Interfaces:
java.lang.Thread.UncaughtExceptionHandler
public final class BugReportExceptionHandler extends java.lang.Object implements java.lang.Thread.UncaughtExceptionHandler
An exception handler that asks the user to send a bug report.- Since:
- 40
-
-
Constructor Summary
Constructors Constructor Description BugReportExceptionHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanexceptionHandlingInProgress()Determines if an exception is currently being handledstatic voidhandleException(java.lang.Throwable e)Handles the given exceptionvoiduncaughtException(java.lang.Thread t, java.lang.Throwable e)
-
-
-
Constructor Detail
-
BugReportExceptionHandler
public BugReportExceptionHandler()
-
-
Method Detail
-
uncaughtException
public void uncaughtException(java.lang.Thread t, java.lang.Throwable e)
- Specified by:
uncaughtExceptionin interfacejava.lang.Thread.UncaughtExceptionHandler
-
handleException
public static void handleException(java.lang.Throwable e)
Handles the given exception- Parameters:
e- the exception
-
exceptionHandlingInProgress
public static boolean exceptionHandlingInProgress()
Determines if an exception is currently being handled- Returns:
trueif an exception is currently being handled,falseotherwise
-
-