In GWT 2.1.1, a UmbrellaException appears here that collects a set of child Throwables together. Try the following:
public void onModuleLoad() { GWT.setUncaughtExceptionHandler(new GWT.UncaughtExceptionHandler() { @Override public void onUncaughtException(@NotNull Throwable e) { ensureNotUmbrellaError(e); } }); }
Where ensureNotUmbrellaError is defined as follows:
private static void ensureNotUmbrellaError(@NotNull Throwable e) { for (Throwable th : ((UmbrellaException) e).getCauses()) { if (th instanceof UmbrellaException) { ensureNotUmbrellaError(th); } else { th.printStackTrace(); } } }
source share