Class 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, java.lang.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 Detail

      • CmsErrorDialog

        public CmsErrorDialog​(java.lang.String message,
                              java.lang.String details)
        Constructor.

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

      • handleException

        public static void handleException​(java.lang.String message,
                                           java.lang.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​(java.lang.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
      • onClose

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