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 boolean
exceptionHandlingInProgress()
Determines if an exception is currently being handledstatic void
handleException(java.lang.Throwable e)
Handles the given exceptionvoid
uncaughtException(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:
uncaughtException
in 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:
true
if an exception is currently being handled,false
otherwise
-
-