code: protected void enableRemoteExceptionHandler() {
  
          if (GWT.isScript()) {
              // In hosted mode, uncaught exceptions are easier to debug
              return;
          }
  
          GWT.setUncaughtExceptionHandler(new GWT.UncaughtExceptionHandler() {
  
              /**
               * @see com.google.gwt.core.client.GWT.UncaughtExceptionHandler#onUncaughtException(java.lang.Throwable)
               */
              public void onUncaughtException(Throwable t) {
  
                  if (t instanceof UmbrellaException) {
                      t = ((UmbrellaException)t).getCauses().iterator().next();
                  }
                  String message = CmsClientStringUtil.getMessage(t);
                  CmsNotification.get().send(CmsNotification.Type.WARNING, message);
                  CmsLog.log(message + "\n" + CmsClientStringUtil.getStackTrace(t, "\n"));
              }
          });
      }
docs: Enables client exception logging on the server.<p>