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

Method formatThrowableMessage

api/src/main/java/io/grpc/Status.java:429–435  ·  view source on GitHub ↗
(Status status)

Source from the content-addressed store, hash-verified

427 }
428
429 static String formatThrowableMessage(Status status) {
430 if (status.description == null) {
431 return status.code.toString();
432 } else {
433 return status.code + ": " + status.description;
434 }
435 }
436
437 private final Code code;
438 private final String description;

Callers 2

StatusExceptionMethod · 0.95

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected