Enum ErrorCode (6.50.1)

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

NameDescription
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

NameDescription
fromGrpcStatus(Status status)

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

valueOf(String name)
values()

Methods

NameDescription
getGrpcStatusCode()