File tree
Expand file treeCollapse file tree1 file changed
+5
-0
lines changed google-cloud-spanner/src/main/java/com/google/cloud/spanner
Expand file treeCollapse file tree1 file changed
+5
-0
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -69,6 +69,11 @@ Status getGrpcStatus() {
|
69 | 69 | return this.code.toStatus();
|
70 | 70 | }
|
71 | 71 |
|
| 72 | +/** @return the corresponding gRPC status code of this {@link ErrorCode}. */ |
| 73 | +public Status.Code getGrpcStatusCode() { |
| 74 | +return this.code; |
| 75 | +} |
| 76 | + |
72 | 77 | /**
|
73 | 78 | * Returns the error code represents by {@code name}, or {@code defaultValue} if {@code name} does
|
74 | 79 | * not map to a known code.
|
|
You can’t perform that action at this time.
0 commit comments