Create a derived instance of Status with the given description. Leading and trailing whitespace may be removed; this may change in the future.
(String description)
| 464 | * whitespace may be removed; this may change in the future. |
| 465 | */ |
| 466 | public Status withDescription(String description) { |
| 467 | if (Objects.equal(this.description, description)) { |
| 468 | return this; |
| 469 | } |
| 470 | return new Status(this.code, description, this.cause); |
| 471 | } |
| 472 | |
| 473 | /** |
| 474 | * Create a derived instance of {@link Status} augmenting the current description with |