This commit updates JbcTemplate#batchUpdate to provide additional information when one batch fails. Previously, the raw BatchUpdateException was thrown with no way to know what had completed thus far. This commit creates an AggregatedBatchUpdateException that wraps the original BatchUpdateException, yet providing the counters of the batches that ran prior to the exception. In essence, this represents the same state as the return value of the method if no batch fails. AggregateBatchUpdateException exposes the original BatchUpdateException in advanced case, such as checking for a sub-class that may contain additional information. Closes gh-23867 |
||
---|---|---|
.. | ||
src | ||
spring-jdbc.gradle |