code: public static void showErrorDialog(String message, String details) {
  
          Window window = prepareWindow(DialogWidth.wide);
          window.setCaption("Error");
          window.setContent(new CmsSetupErrorDialog(message, details, null, window));
          A_CmsUI.get().addWindow(window);
  
      }
docs: Shows error dialog, manually supplying details instead of getting them from an exception stack trace.
  
  @param message the error message
  @param details the details