Enum ErrorCode (6.66.0)

public enum ErrorCode extends Enum<ErrorCode>

Enumerates the major types of error that the Cloud Spanner service can produce. These codes are accessible via SpannerException#getErrorCode().

Static Fields

Name Description
ABORTED
ALREADY_EXISTS
CANCELLED
DATA_LOSS
DEADLINE_EXCEEDED
FAILED_PRECONDITION
INTERNAL
INVALID_ARGUMENT
NOT_FOUND
OUT_OF_RANGE
PERMISSION_DENIED
RESOURCE_EXHAUSTED
UNAUTHENTICATED
UNAVAILABLE
UNIMPLEMENTED
UNKNOWN

Static Methods

Name Description
fromGrpcStatus(Status status)

Returns the error code corresponding to a gRPC status, or UNKNOWN if not recognized.

valueOf(String name)
values()

Methods

Name Description
getGrpcStatusCode()