public static void handleCrashesOnThisThread ( ) { Thread . currentThread ( ) . setUncaughtExceptionHandler ( ( thread , exception ) -> { GuiUtils . crashAlert ( Throwables . getRootCause ( exception ) ) ; } ) ; }
Show a GUI alert box for any unhandled exceptions that propagate out of this thread .