code: public static void showErrorDialog(Throwable t, Runnable onClose) {
  
          showErrorDialog(t.getLocalizedMessage(), t, onClose);
      }
docs: Shows the error dialog.<p>
  
  @param t the error to be displayed
  @param onClose executed on close