Package | Description |
---|---|
com.google.cloud.spanner |
A client for Cloud Spanner - A no-compromise relational database service.
|
Modifier and Type | Method and Description |
---|---|
static ErrorCode |
ErrorCode.fromGrpcStatus(Status status)
Returns the error code corresponding to a gRPC status, or
UNKNOWN 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.
|
Modifier and Type | Method and 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) |
Copyright © 2022 Google LLC. All rights reserved.