public class AbortOnFailure<I extends Exceptional,O,C extends ErrorCollector<O>> extends Object implements ErrorHandler<I,O,C>
| Constructor and Description | 
|---|
| AbortOnFailure() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close()Called at the close of the connector to clean up any internal resources. | 
| static <I extends Exceptional,O,C extends ErrorCollector<O>> | create() | 
| 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. | 
public static <I extends Exceptional,O,C extends ErrorCollector<O>> AbortOnFailure<I,O,C> create()
public void init(Properties properties)
ErrorHandlerinit in interface ErrorHandler<I extends Exceptional,O,C extends ErrorCollector<O>>properties - Properties for this handler with handler name prefix stripped away.public void close()
ErrorHandlerclose in interface ErrorHandler<I extends Exceptional,O,C extends ErrorCollector<O>>public HandlerResult onError(I entry, C collector) throws Exception
ErrorHandleronError in interface ErrorHandler<I extends Exceptional,O,C extends ErrorCollector<O>>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.