public void run() { customExceptionOccurred(exception); } });
/** * Called when an exception occurred. * @param exception The exception. */ final public void exceptionOccurred(final Exception exception) { // exception.printStackTrace(); // Hack!!! When triggered from shutdown hook, swing might be terminated // and invokeLater has no effect (grrr). if(!SReflect.HAS_GUI || SwingUtilities.isEventDispatchThread())// || Starter.isShutdown()) // if(SwingUtilities.isEventDispatchThread()) { customExceptionOccurred(exception); } else { SwingUtilities.invokeLater(new Runnable() { public void run() { customExceptionOccurred(exception); } }); } }