public interface ErrorHandler<I extends Exceptional,O,C extends ErrorCollector<O>>
| Modifier and Type | Method and Description | 
|---|---|
| void | close()Called at the close of the connector to clean up any internal resources. | 
| void | init(Properties properties)Called at the handler creation time to initialize any internal state or resources. | 
| HandlerResult | onError(I entry,
       C collector)Called when an exception or failure occurs in a part of the connector. | 
void init(Properties properties)
properties - Properties for this handler with handler name prefix stripped away.HandlerResult onError(I entry, C collector) throws Exception
entry - information about the failure, normally includes operational data and error informationcollector - handler for accepting user reactions to the failure, like retrying with modified parametersException - In the event that the current failure should not be handled, and should halt the connector
 processing.void close()