MCPcopy Index your code
hub / github.com/grpc/grpc-java / withDescription

Method withDescription

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

Create a derived instance of Status with the given description. Leading and trailing whitespace may be removed; this may change in the future.

(String description)

Source from the content-addressed store, hash-verified

464 * whitespace may be removed; this may change in the future.
465 */
466 public Status withDescription(String description) {
467 if (Objects.equal(this.description, description)) {
468 return this;
469 }
470 return new Status(this.code, description, this.cause);
471 }
472
473 /**
474 * Create a derived instance of {@link Status} augmenting the current description with

Callers 15

cancelInternalMethod · 0.95
statusFromTrailersMethod · 0.95
cancelMethod · 0.95
toStatusMethod · 0.95
convertStatusMethod · 0.95
interceptCallMethod · 0.95
readStatusMethod · 0.95
serviceUriMethod · 0.80
removePortMethod · 0.80
getRequestMetadataMethod · 0.80
applyRequestMetadataMethod · 0.80
onSuccessMethod · 0.80

Calls 1

equalMethod · 0.45

Tested by 15

pickSubchannelMethod · 0.64
tearDownMethod · 0.64
clientStartStopMethod · 0.64
ping_afterTerminationMethod · 0.64
basicStreamMethod · 0.64
zeroMessageStreamMethod · 0.64