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

Method augmentDescription

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

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

(String additionalDetail)

Source from the content-addressed store, hash-verified

476 * future.
477 */
478 public Status augmentDescription(String additionalDetail) {
479 if (additionalDetail == null) {
480 return this;
481 } else if (this.description == null) {
482 return new Status(this.code, additionalDetail, this.cause);
483 } else {
484 return new Status(this.code, this.description + "\n" + additionalDetail, this.cause);
485 }
486 }
487
488 /**
489 * The canonical status code.

Callers 15

statusFromTrailersMethod · 0.95
goAwayMethod · 0.95
checkAuthorizationMethod · 0.95
createStreamMethod · 0.95
transportDataReceivedMethod · 0.80
runMethod · 0.80
maybeUpdatePickerMethod · 0.80
onErrorMethod · 0.80

Calls

no outgoing calls

Tested by 1