From 131dd36ced74bfba72168259c96a3a103ad60159 Mon Sep 17 00:00:00 2001 From: dapengzhang0 Date: Tue, 21 Jun 2016 11:52:29 -0700 Subject: [PATCH] doc: Status's cause is not transmitted from server to client --- core/src/main/java/io/grpc/Status.java | 2 ++ 1 file changed, 2 insertions(+) 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() {