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 Details

    • handleErrors

      void handleErrors(List<ExchangeObject> exchangeObjects, BatchContext<?> batchContext)
      Handles errors for the given exchange objects. It is assumed that all objects in the list have errors.
      Parameters:
      exchangeObjects - the exchange objects
    • handleGlobalError

      DataExchangeGlobalException handleGlobalError(Throwable throwable, BatchContext<?> batchContext)
      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 occurred
      batchContext - the batch context
      Returns:
      An exception to be thrown.