Class SpannerBatchNonQueryException (3.13.0)

public class SpannerBatchNonQueryException : SpannerException, ISerializable

Represents an error communicating with the Spanner database when executing batch non query operations.

Inheritance

Object > Exception > SpannerException > SpannerBatchNonQueryException

Implements

ISerializable

Namespace

Google.Cloud.Spanner.Data

Assembly

Google.Cloud.Spanner.Data.dll

Remarks

In Spanner batched commands are executed sequentially in the order they are received. If one command fails then the following commands won't be executed. This exception contains the error code and error message corresponding to the command that failed. It also contains the number of rows modified by each of the commands that executed successfully.

Properties

SuccessfulCommandResults

public IEnumerable<long> SuccessfulCommandResults { get; }

Returns the affected rows for each of the batch commands that executed succesfully.

Property Value
TypeDescription
IEnumerable<Int64>

Extension Method