Class AggregatedBatchUpdateException

All Implemented Interfaces:
Serializable, Iterable<Throwable>

public class AggregatedBatchUpdateException extends BatchUpdateException
A BatchUpdateException that provides additional information about batches that were successful prior to one failing.
Since:
6.2
Author:
Stephane Nicoll
See Also:
  • Constructor Details

    • AggregatedBatchUpdateException

      public AggregatedBatchUpdateException(int[][] successfulUpdateCounts, BatchUpdateException original)
      Create an aggregated exception with the batches that have completed prior to the given cause.
      Parameters:
      successfulUpdateCounts - the counts of the batches that run successfully
      original - the exception this instance aggregates
  • Method Details

    • getSuccessfulUpdateCounts

      public int[][] getSuccessfulUpdateCounts()
      Return the batches that have completed successfully, prior to this exception.

      Information about the batch that failed is available via BatchUpdateException.getUpdateCounts().

      Returns:
      an array containing for each batch another array containing the numbers of rows affected by each update in the batch
      See Also:
    • getOriginalException

      public BatchUpdateException getOriginalException()
      Return the original BatchUpdateException that this exception aggregates.
      Returns:
      the original exception