Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ Status getGrpcStatus() {
return this.code.toStatus();
}

/** @return the corresponding gRPC status code of this {@link ErrorCode}. */
public Status.Code getGrpcStatusCode() {
return this.code;
}

/**
* Returns the error code represents by {@code name}, or {@code defaultValue} if {@code name} does
* not map to a known code.
Expand Down