Class SpannerException

public class SpannerException extends BaseGrpcServiceException

Base exception type for all exceptions produced by the Cloud Spanner service.

Inheritance

java.lang.Object > Throwable > java.lang.Exception > java.lang.RuntimeException > BaseServiceException > com.google.cloud.grpc.BaseGrpcServiceException > SpannerException

Methods

getErrorCode()

public ErrorCode getErrorCode()

Returns the error code associated with this exception.

Returns
TypeDescription
ErrorCode

getRetryDelayInMillis()

public long getRetryDelayInMillis()

Return the retry delay for operation in milliseconds. Return -1 if this does not specify any retry delay.

Returns
TypeDescription
long