Interface IEditErrorHandler
- All Known Implementing Classes:
AbstractEditErrorHandler,DialogErrorHandling,DiscardValueErrorHandling,LoggingErrorHandling,RenderErrorHandling
public interface IEditErrorHandler
An
IEditErrorHandler will be used if on data conversion or validation
while editing via ICellEditor an error occurs. Such a handler is
usually registered in the IConfigRegistry, using the
EditConfigAttributes.
For some ICellEditors 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 the TextCellEditor.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddisplayError(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 voiddisplayError(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.voidremoveError(ICellEditor cellEditor) Will remove styling or other decorations that indicate that an error occurred.
-
Method Details
-
removeError
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- TheICellEditorto remove the error styling from.
-
displayError
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 givenExceptionwill be shown to the user.- Parameters:
cellEditor- TheICellEditoron which the conversion/validation error occurred. Needed to add error styling or special handling.e- TheExceptionthat contains information about the conversion/validation error. Used to show a more detailed description on the error to the user.
-
displayError
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 givenExceptionwill be shown to the user.- Parameters:
cellEditor- TheICellEditoron which the conversion/validation error occurred. Needed to add error styling or special handling.configRegistry- TheIConfigRegistryto get additional context information.e- TheExceptionthat contains information about the conversion/validation error. Used to show a more detailed description on the error to the user.- Since:
- 2.0
-