diff --git a/core/src/main/java/io/grpc/Status.java b/core/src/main/java/io/grpc/Status.java index 3e754f56a99..057b6b383b5 100644 --- a/core/src/main/java/io/grpc/Status.java +++ b/core/src/main/java/io/grpc/Status.java @@ -462,6 +462,7 @@ private Status(Code code, @Nullable String description, @Nullable Throwable caus /** * Create a derived instance of {@link Status} with the given cause. + * However, the cause is not transmitted from server to client. */ public Status withCause(Throwable cause) { if (Objects.equal(this.cause, cause)) { @@ -513,6 +514,7 @@ public String getDescription() { /** * The underlying cause of an error. + * Note that the cause is not transmitted from server to client. */ @Nullable public Throwable getCause() {