- 6.107.0 (latest)
- 6.103.0
- 6.102.1
- 6.101.1
- 6.100.0
- 6.99.0
- 6.98.1
- 6.97.1
- 6.96.1
- 6.95.1
- 6.94.0
- 6.93.0
- 6.89.0
- 6.88.0
- 6.87.0
- 6.86.0
- 6.85.0
- 6.83.0
- 6.82.0
- 6.80.1
- 6.79.0
- 6.77.0
- 6.74.1
- 6.72.0
- 6.71.0
- 6.69.0
- 6.68.0
- 6.66.0
- 6.65.1
- 6.62.0
- 6.60.0
- 6.58.0
- 6.57.0
- 6.56.0
- 6.55.0
- 6.54.0
- 6.53.0
- 6.52.1
- 6.51.0
- 6.50.1
- 6.49.0
- 6.25.1
- 6.24.0
- 6.23.4
- 6.22.0
- 6.21.2
- 6.20.0
- 6.19.1
- 6.18.0
- 6.17.4
- 6.14.1
public class SpannerException extends BaseGrpcServiceExceptionBase exception type for all exceptions produced by the Cloud Spanner service.
Methods
getDomain()
public String getDomain()Checks the underlying reason of the exception and if it's ApiException then return the specific domain otherwise null. See Also: Domain
| Returns | |
|---|---|
| Type | Description |
String |
the logical grouping to which the "reason" belongs. |
getErrorCode()
public ErrorCode getErrorCode()Returns the error code associated with this exception.
| Returns | |
|---|---|
| Type | Description |
ErrorCode |
|
getErrorDetails()
public ErrorDetails getErrorDetails()Checks the underlying reason of the exception and if it's ApiException then return the ErrorDetails otherwise null. See Also: Error Details, Status
| Returns | |
|---|---|
| Type | Description |
ErrorDetails |
An object containing getters for structured objects from error_details.proto. |
getMessage()
public String getMessage()| Returns | |
|---|---|
| Type | Description |
String |
|
getMetadata()
public Map<String,String> getMetadata()Checks the underlying reason of the exception and if it's ApiException then return a map of key-value pairs otherwise null. See Also: Metadata
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
the map of additional structured details about an error. |
getPostgreSQLErrorCode()
public String getPostgreSQLErrorCode()Returns the PostgreSQL SQLState error code that is encoded in this exception, or null if this SpannerException does not include a PostgreSQL error code.
| Returns | |
|---|---|
| Type | Description |
String |
|
getReason()
public String getReason()Checks the underlying reason of the exception and if it's ApiException then return the reason otherwise null. See Also: Reason
| Returns | |
|---|---|
| Type | Description |
String |
the reason of an error. |
getRequestId()
public String getRequestId()| Returns | |
|---|---|
| Type | Description |
String |
|
getRetryDelayInMillis()
public long getRetryDelayInMillis()Return the retry delay for operation in milliseconds. Return -1 if this does not specify any retry delay.
| Returns | |
|---|---|
| Type | Description |
long |
|
toString()
public String toString()| Returns | |
|---|---|
| Type | Description |
String |
|