@Override
public void onUncaughtException(Throwable e) {
if (!hasFired) {
hasFired = true;
final ErrorIndicatorPresenter error =
ErrorIndicatorPresenter.create(RootPanel.get("banner"));
getStackTraceAsync(e, new Accessor<SafeHtml>() {
@Override
public void use(SafeHtml stack) {
error.addDetail(stack, null);
REMOTE_LOG.severe(stack.asString().replace("<br>", "\n"));
}
});
}