Create a derived instance of Status with the given cause. However, the cause is not transmitted from server to client.
(Throwable cause)
| 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 |