Package ghidra
Class SwingExceptionHandler
- java.lang.Object
-
- ghidra.SwingExceptionHandler
-
- All Implemented Interfaces:
java.lang.Thread.UncaughtExceptionHandler
public class SwingExceptionHandler extends java.lang.Object implements java.lang.Thread.UncaughtExceptionHandler
Class to handle exceptions caught within the Swing event dispatch thread.
-
-
Constructor Summary
Constructors Constructor Description SwingExceptionHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(java.lang.Throwable t)
Handle exception caught within the EventDispatchThread.static void
handleUncaughtException(java.lang.Throwable t)
static void
registerHandler()
Register SwingExceptionHandlervoid
uncaughtException(java.lang.Thread t, java.lang.Throwable e)
-
-
-
Method Detail
-
handle
public void handle(java.lang.Throwable t) throws java.lang.Throwable
Handle exception caught within the EventDispatchThread.- Parameters:
t
- exception- Throws:
java.lang.Throwable
- error occurred while attempting to handle exception- See Also:
java.awt.EventDispatchThread#handleException(java.lang.Throwable)
-
registerHandler
public static void registerHandler()
Register SwingExceptionHandler
-
handleUncaughtException
public static void handleUncaughtException(java.lang.Throwable t)
-
uncaughtException
public void uncaughtException(java.lang.Thread t, java.lang.Throwable e)
- Specified by:
uncaughtException
in interfacejava.lang.Thread.UncaughtExceptionHandler
-
-