code: @Override
    public final void onModuleLoad() {
      GWT.setUncaughtExceptionHandler(new UncaughtExceptionHandler() {
        @Override
        public void onUncaughtException(Throwable e) {
          HtmlPlatform.log.error("Uncaught Exception: ", e);
        }
      });
  
      // Need to do everything else in a deferred command, so that
      // the uncaught exception handler has taken effect
      Scheduler.get().scheduleDeferred(new ScheduledCommand() {
  
        @Override
        public void execute() {
          start();
        }
  
      });
    }
docs: /*
  TODO(fredsa): consider adding an onerror page handler, for non-GWT
  originated exceptions