Class AbstractEditErrorHandler

    • Constructor Detail

      • AbstractEditErrorHandler

        public AbstractEditErrorHandler​(IEditErrorHandler underlyingErrorHandler)
        Parameters:
        underlyingErrorHandler - The underlying IEditErrorHandler
    • Method Detail

      • removeError

        public void removeError​(ICellEditor cellEditor)
        Will remove styling or other decorations that indicate that an error occurred. Only necessary to implement if the error handler adds special styling or decorations on error.

        This implementation will call its underlying IEditErrorHandler.

        Specified by:
        removeError in interface IEditErrorHandler
        Parameters:
        cellEditor - The ICellEditor to remove the error styling from.
      • displayError

        public void displayError​(ICellEditor cellEditor,
                                 Exception e)
        If an error occurs on conversion/validation of data, this method will be called for showing that error to the user. Usually the message contained within the given Exception will be shown to the user.

        This implementation will call its underlying IEditErrorHandler.

        Specified by:
        displayError in interface IEditErrorHandler
        Parameters:
        cellEditor - The ICellEditor on which the conversion/validation error occurred. Needed to add error styling or special handling.
        e - The Exception that contains information about the conversion/validation error. Used to show a more detailed description on the error to the user.
      • displayError

        public void displayError​(ICellEditor cellEditor,
                                 IConfigRegistry configRegistry,
                                 Exception e)
        If an error occurs on conversion/validation of data, this method will be called for showing that error to the user. Usually the message contained within the given Exception will be shown to the user.

        This implementation will call its underlying IEditErrorHandler.

        Specified by:
        displayError in interface IEditErrorHandler
        Parameters:
        cellEditor - The ICellEditor on which the conversion/validation error occurred. Needed to add error styling or special handling.
        configRegistry - The IConfigRegistry to get additional context information.
        e - The Exception that contains information about the conversion/validation error. Used to show a more detailed description on the error to the user.