Exception SpannerException (6.25.0)

public class SpannerException extends BaseGrpcServiceException

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

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