Create a derived instance of Status augmenting the current description with additional detail. Leading and trailing whitespace may be removed; this may change in the future.
(String additionalDetail)
| 476 | * future. |
| 477 | */ |
| 478 | public Status augmentDescription(String additionalDetail) { |
| 479 | if (additionalDetail == null) { |
| 480 | return this; |
| 481 | } else if (this.description == null) { |
| 482 | return new Status(this.code, additionalDetail, this.cause); |
| 483 | } else { |
| 484 | return new Status(this.code, this.description + "\n" + additionalDetail, this.cause); |
| 485 | } |
| 486 | } |
| 487 | |
| 488 | /** |
| 489 | * The canonical status code. |
no outgoing calls