Uses of Enum
com.google.cloud.spanner.ErrorCode
Packages that use ErrorCode
Package
Description
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 ErrorCodeModifier and TypeMethodDescriptionstatic ErrorCode
ErrorCode.fromGrpcStatus
(io.grpc.Status status) Returns the error code corresponding to a gRPC status, orUNKNOWN
if not recognized.SpannerException.getErrorCode()
Returns the error code associated with this exception.static ErrorCode
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 ErrorCodeModifier and TypeMethodDescriptionstatic 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)