Class LoggingErrorHandling
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.edit.editor.AbstractEditErrorHandler
-
- org.eclipse.nebula.widgets.nattable.edit.config.LoggingErrorHandling
-
- All Implemented Interfaces:
IEditErrorHandler
public class LoggingErrorHandling extends AbstractEditErrorHandler
Error handling strategy that simply writes conversion/validation errors to the log.
-
-
Field Summary
-
Fields inherited from class org.eclipse.nebula.widgets.nattable.edit.editor.AbstractEditErrorHandler
underlyingErrorHandler
-
-
Constructor Summary
Constructors Constructor Description LoggingErrorHandling()
Create a newLoggingErrorHandling
with no underlyingIEditErrorHandler
LoggingErrorHandling(IEditErrorHandler underlyingErrorHandler)
Create a newLoggingErrorHandling
using the givenIEditErrorHandler
as the underlying to allow chaining of error handling.
-
Method Summary
All Methods Instance Methods Concrete 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.-
Methods inherited from class org.eclipse.nebula.widgets.nattable.edit.editor.AbstractEditErrorHandler
displayError, removeError
-
-
-
-
Constructor Detail
-
LoggingErrorHandling
public LoggingErrorHandling()
Create a newLoggingErrorHandling
with no underlyingIEditErrorHandler
-
LoggingErrorHandling
public LoggingErrorHandling(IEditErrorHandler underlyingErrorHandler)
Create a newLoggingErrorHandling
using the givenIEditErrorHandler
as the underlying to allow chaining of error handling.- Parameters:
underlyingErrorHandler
- The underlyingIEditErrorHandler
-
-
Method Detail
-
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 givenException
will be shown to the user.This implementation will call its underlying
IEditErrorHandler
. After the error is handled by its underlyingIEditErrorHandler
, the error will be logged as a warning.- Specified by:
displayError
in interfaceIEditErrorHandler
- Overrides:
displayError
in classAbstractEditErrorHandler
- 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.
-
-