Uses of Class
com.google.cloud.spanner.ErrorCode
-
Packages that use ErrorCode Package Description com.google.cloud.spanner A client for Cloud Spanner - A no-compromise relational database service. -
-
Uses of ErrorCode in com.google.cloud.spanner
Methods in com.google.cloud.spanner that return ErrorCode Modifier and Type Method Description static ErrorCode
ErrorCode. fromGrpcStatus(io.grpc.Status status)
Returns the error code corresponding to a gRPC status, orUNKNOWN
if not recognized.ErrorCode
SpannerException. getErrorCode()
Returns the error code associated with this exception.static ErrorCode
ErrorCode. valueOf(String name)
Returns the enum constant of this type with the specified name.static ErrorCode[]
ErrorCode. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in com.google.cloud.spanner with parameters of type ErrorCode Modifier and Type Method Description static SpannerBatchUpdateException
SpannerExceptionFactory. newSpannerBatchUpdateException(ErrorCode code, String message, long[] updateCounts)
static SpannerException
SpannerExceptionFactory. newSpannerException(ErrorCode code, String message)
static SpannerException
SpannerExceptionFactory. newSpannerException(ErrorCode code, String message, Throwable cause)
-