Google.Cloud.Spanner.Data - Class SpannerBatchNonQueryException (4.3.0)

public class SpannerBatchNonQueryException : SpannerException, ISerializable

Reference documentation and code samples for the Google.Cloud.Spanner.Data class SpannerBatchNonQueryException.

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

Inheritance

object > Exception > SpannerException > SpannerBatchNonQueryException

Implements

ISerializable

Namespace

GoogleCloudGoogle.Cloud.SpannerData

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
IEnumerablelong

Extension Method