public class LoggingErrorHandling extends AbstractEditErrorHandler
underlyingErrorHandler
Constructor and Description |
---|
LoggingErrorHandling()
Create a new
LoggingErrorHandling with no underlying IEditErrorHandler |
LoggingErrorHandling(IEditErrorHandler underlyingErrorHandler)
Create a new
LoggingErrorHandling 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.
|
removeError
public LoggingErrorHandling()
LoggingErrorHandling
with no underlying IEditErrorHandler
public LoggingErrorHandling(IEditErrorHandler underlyingErrorHandler)
LoggingErrorHandling
using the given IEditErrorHandler
as
the underlying to allow chaining of error handling.underlyingErrorHandler
- The underlying IEditErrorHandler
public 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 error will be logged as a warning.
displayError
in interface IEditErrorHandler
displayError
in class AbstractEditErrorHandler
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 © 2013. All Rights Reserved.