Class ApplicationErrorHelper

  • All Implemented Interfaces:
    org.jdesktop.swingx.error.ErrorReporter

    public class ApplicationErrorHelper
    extends Object
    implements org.jdesktop.swingx.error.ErrorReporter
    Helper to display errors.
    Since:
    2.8
    Author:
    Tony Chemit - chemit@codelutin.com
    • Method Detail

      • createHTML

        protected Component createHTML​(String html)
        Create JPane with scroll to prevent windows bigger than screen resolution
        Parameters:
        html -
        Returns:
      • showErrorDialog

        public void showErrorDialog​(String message,
                                    Throwable cause)
        Display a user friendly error frame.
        Parameters:
        message - message for user
        cause - exception cause
      • showErrorDialog

        public void showErrorDialog​(String message)
        Display a user friendly error frame.
        Parameters:
        message - message for user
      • reportError

        public void reportError​(org.jdesktop.swingx.error.ErrorInfo errorInfo)
                         throws NullPointerException
        Specified by:
        reportError in interface org.jdesktop.swingx.error.ErrorReporter
        Throws:
        NullPointerException
      • showWarningDialog

        public void showWarningDialog​(String message)
        Display a user friendly warning frame.
        Parameters:
        message - message for user