Interface IEditErrorHandler
-
- All Known Implementing Classes:
AbstractEditErrorHandler
,DialogErrorHandling
,DiscardValueErrorHandling
,LoggingErrorHandling
,RenderErrorHandling
public interface IEditErrorHandler
AnIEditErrorHandler
will be used if on data conversion or validation while editing viaICellEditor
an error occurs. Such a handler is usually registered in theIConfigRegistry
, using theEditConfigAttributes
.For some
ICellEditor
s they are also used for just in time conversion/validation to render the wrong input immediately for feedback to the user. This is done e.g. in theTextCellEditor
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description 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.default 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.void
removeError(ICellEditor cellEditor)
Will remove styling or other decorations that indicate that an error occurred.
-
-
-
Method Detail
-
removeError
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.- Parameters:
cellEditor
- TheICellEditor
to remove the error styling from.
-
displayError
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 givenException
will be shown to the user.- Parameters:
cellEditor
- TheICellEditor
on which the conversion/validation error occurred. Needed to add error styling or special handling.e
- TheException
that contains information about the conversion/validation error. Used to show a more detailed description on the error to the user.
-
displayError
default 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 givenException
will be shown to the user.- Parameters:
cellEditor
- TheICellEditor
on which the conversion/validation error occurred. Needed to add error styling or special handling.configRegistry
- TheIConfigRegistry
to get additional context information.e
- TheException
that contains information about the conversion/validation error. Used to show a more detailed description on the error to the user.- Since:
- 2.0
-
-