public class DiscardValueErrorHandling extends AbstractEditErrorHandler
underlyingErrorHandler| Constructor and Description |
|---|
DiscardValueErrorHandling()
Create a new
DiscardValueErrorHandling with no underlying
IEditErrorHandler |
DiscardValueErrorHandling(IEditErrorHandler underlyingErrorHandler)
Create a new
DiscardValueErrorHandling using the given
IEditErrorHandler as the underlying to allow chaining of error
handling. |
| Modifier and Type | Method and 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.
|
removeErrorpublic DiscardValueErrorHandling()
DiscardValueErrorHandling with no underlying
IEditErrorHandlerpublic DiscardValueErrorHandling(IEditErrorHandler underlyingErrorHandler)
DiscardValueErrorHandling using the given
IEditErrorHandler as the underlying to allow chaining of error
handling.underlyingErrorHandler - The underlying IEditErrorHandlerpublic void displayError(ICellEditor cellEditor, Exception e)
Exception will be shown to the user.
This implementation will call its underlying IEditErrorHandler. After the error is handled by its underlying
IEditErrorHandler, the ICellEditor will be closed,
discarding the value.
displayError in interface IEditErrorHandlerdisplayError in class AbstractEditErrorHandlercellEditor - 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.Copyright © 2017. All rights reserved.