MCPcopy Create free account
hub / github.com/grpc/grpc-java / fromCode

Method fromCode

api/src/main/java/io/grpc/Status.java:348–350  ·  view source on GitHub ↗

Return a Status given a canonical error Code object.

(Code code)

Source from the content-addressed store, hash-verified

346 * Return a {@link Status} given a canonical error {@link Code} object.
347 */
348 public static Status fromCode(Code code) {
349 return code.toStatus();
350 }
351
352 /**
353 * Key to bind status code to trailing metadata.

Calls 1

toStatusMethod · 0.45

Tested by 15

headersRead_closedMethod · 0.76
cancel_closedMethod · 0.76
retry_cancel_closedMethod · 0.76
cancelWhileDrainingMethod · 0.76