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 ErrorCodeErrorCode.fromGrpcStatus(io.grpc.Status status) Returns the error code corresponding to a gRPC status, orUNKNOWNif not recognized.SpannerException.getErrorCode()Returns the error code associated with this exception.static ErrorCodeReturns 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 SpannerBatchUpdateExceptionSpannerExceptionFactory.newSpannerBatchUpdateException(ErrorCode code, String message, long[] updateCounts) static SpannerExceptionSpannerExceptionFactory.newSpannerException(ErrorCode code, String message) static SpannerExceptionSpannerExceptionFactory.newSpannerException(ErrorCode code, String message, Throwable cause) void