org.eclipse.nebula.widgets.nattable.edit.config
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.
- Author:
- Dirk Fauth
|
Method Summary |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoggingErrorHandling
public LoggingErrorHandling()
- Create a new
LoggingErrorHandling with no underlying
IEditErrorHandler
LoggingErrorHandling
public LoggingErrorHandling(IEditErrorHandler underlyingErrorHandler)
- Create a new
LoggingErrorHandling using the given
IEditErrorHandler as the underlying to allow chaining of error
handling.
- Parameters:
underlyingErrorHandler - The underlying IEditErrorHandler
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. After the error is handled by its underlying
IEditErrorHandler, the error will be logged as a warning.
- Specified by:
displayError in interface IEditErrorHandler- Overrides:
displayError in class AbstractEditErrorHandler
- 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.
Copyright © 2015. All rights reserved.