I think you can't use GIN's ClientModule
to set your UncaughtExceptionHandler
.
Instead create a custom PreBootstrapper:
A PreBootstrapper allows you to hook into the GWTP bootstrapping process right before it starts. This is particularly useful if you need something done before GWTP starts up. In general the use of a Bootstrapper is advised but there are cases where that is not enough,for example when setting up an UncaughtExceptionHandler for gwt-log.
<set-configuration-property name="gwtp.prebootstrapper"
value="com.arcbees.project.client.PreBootstrapperImpl"/>
public class PreBootstrapperImpl implements PreBootstrapper {
@Override
public void onPreBootstrap() {
GWT.setUncaughtExceptionHandler(new UncaughtExceptionHandler() {
@Override
public void onUncaughtException(final Throwable e) {
Window.alert("There was a problem loading your application");
}
});
}
}