onModuleLoad.
, java.util.Logging . GWT.log .
/** * , * (UmbrellaException) SuperDevMode. */ private void setUncaughtExceptionHandler() { GWT.setUncaughtExceptionHandler( GWT.UncaughtExceptionHandler() { @Override public void onUncaughtException (Throwable e) { Throwable unwrapped = (e); BootBox.error(I18NMessages.getMessage(3774) + "\n\n" + ); LOGGER.log(Level.EXCEPTION, "onUncaughtException" + e.getMessage(), ); }
public Throwable unwrap(Throwable e)
{
if (e instanceof UmbrellaException)
{
UmbrellaException ue = (UmbrellaException) e;
if (ue.getCauses().size() == 1)
{
return unwrap(ue.getCauses().iterator().next());
}
}
return e;
}
});
}
LOGGER .
public static final Logger LOGGER = Logger.getLogger("Something");