I\'m working with GWT currently but I find it nearly impossible to find errors with the current error messages in the Chrome console. I get the errors both when in local dev
In GWT 2.1.1 here comes UmbrellaException that collects a Set of child Throwables together. Try this:
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();
}
}
}