Class CmsErrorDialog

java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.SimplePanel
com.google.gwt.user.client.ui.PopupPanel
org.opencms.gwt.client.ui.CmsPopup
org.opencms.gwt.client.ui.CmsErrorDialog
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.HasCloseHandlers<com.google.gwt.user.client.ui.PopupPanel>, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.EventPreview, com.google.gwt.user.client.ui.AcceptsOneWidget, com.google.gwt.user.client.ui.HasAnimation, com.google.gwt.user.client.ui.HasOneWidget, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, com.google.gwt.user.client.ui.SourcesPopupEvents, Iterable<com.google.gwt.user.client.ui.Widget>, I_CmsAutoHider

public class CmsErrorDialog extends CmsPopup
Provides a generic error dialog.

Since:
8.0.0
  • Constructor Details

    • CmsErrorDialog

      public CmsErrorDialog(String message, String details)
      Constructor.

      Parameters:
      message - the error message
      details - the error details, will be 'pre' formatted
  • Method Details

    • handleException

      public static void handleException(String message, Throwable t)
      Handles the exception by logging the exception to the server log and displaying an error dialog on the client.

      Parameters:
      message - the error message
      t - the throwable
    • handleException

      public static void handleException(Throwable t)
      Handles the exception by logging the exception to the server log and displaying an error dialog on the client.

      Parameters:
      t - the throwable
    • isShowingErrorDialogs

      public static boolean isShowingErrorDialogs()
      Checks if any error dialogs are showing.

      Returns:
      true if any error dialogs are showing
    • center

      public void center()
      Overrides:
      center in class CmsPopup
      See Also:
    • hide

      public void hide()
      Description copied from interface: I_CmsAutoHider
      Hides the widget.

      Specified by:
      hide in interface I_CmsAutoHider
      Overrides:
      hide in class CmsPopup
      See Also:
    • show

      public void show()
      Overrides:
      show in class CmsPopup
      See Also:
    • onClose

      protected void onClose()
      Executed on 'close' click.