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

Method withCause

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

Create a derived instance of Status with the given cause. However, the cause is not transmitted from server to client.

(Throwable cause)

Source from the content-addressed store, hash-verified

453 * However, the cause is not transmitted from server to client.
454 */
455 public Status withCause(Throwable cause) {
456 if (Objects.equal(this.cause, cause)) {
457 return this;
458 }
459 return new Status(this.code, this.description, cause);
460 }
461
462 /**
463 * Create a derived instance of {@link Status} with the given description. Leading and trailing

Callers 15

cancelInternalMethod · 0.95
cancelMethod · 0.95
cleanStatusMethod · 0.95
statusFromCancelledMethod · 0.95
checkAuthorizationMethod · 0.95
serviceUriMethod · 0.80
removePortMethod · 0.80
getRequestMetadataMethod · 0.80

Calls 1

equalMethod · 0.45