# Cloud Spanner API - Class Google::Cloud::Spanner::BatchUpdateError (v2.36.0)

2.36.0 (latest) 2.35.0 2.34.0 2.33.0 2.32.0 2.31.0 2.30.0 2.29.0 2.28.0 2.27.0 2.26.0 2.25.0 2.24.0 2.23.0 2.22.0 2.21.0 2.20.0 2.19.1 2.18.1 2.17.0 2.16.1 2.15.0 2.14.0 2.13.0 2.12.1 2.11.0 Reference documentation and code samples for the Cloud Spanner API class Google::Cloud::Spanner::BatchUpdateError.

## BatchUpdateError

Includes the cause and the partial result set of row counts from a
failed batch DML operation. Contains a cause error that provides service
error type and message, and a list with the exact number of rows that
were modified for each successful statement before the error.

See [Transaction#batch_update](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner/latest/Google-Cloud-Spanner-Transaction#Google__Cloud__Spanner__Transaction_batch_update_instance_ "Google::Cloud::Spanner::Transaction#batch_update (method)").

## Inherits

- [Google::Cloud::Error](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner/latest/Google-Cloud-Error)

## Methods

### #row_counts

    def row_counts() -> Array<Integer>

A list with the exact number of
rows that were modified for each successful statement.
**Returns**

- (Array\<Integer\>) --- the current value of row_counts