Interface BatchItemErrorHandler
- All Known Implementing Classes:
DefaultBatchItemErrorHandler
public interface BatchItemErrorHandler
Implementation handles errors for a batch of exchange objects by delegating to
ErrorResolver
implementations.-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleErrors
(List<ExchangeObject> exchangeObjects, BatchContext<?> batchContext) Handles errors for the given exchange objects.handleGlobalError
(Throwable throwable, BatchContext<?> batchContext) Handles an unrecoverable error that occurred during processing of a batch of exchange objects.
-
Method Details
-
handleErrors
Handles errors for the given exchange objects. It is assumed that all objects in the list have errors.- Parameters:
exchangeObjects
- the exchange objects
-
handleGlobalError
Handles an unrecoverable error that occurred during processing of a batch of exchange objects. This is called when an error occurs outside the processing of individual exchange objects.- Parameters:
throwable
- the error that occurredbatchContext
- the batch context- Returns:
- An exception to be thrown.
-