Convert this Status to a RuntimeException. Use #fromThrowable to recover this Status instance when the returned exception is in the causal chain.
()
| 521 | * to recover this {@link Status} instance when the returned exception is in the causal chain. |
| 522 | */ |
| 523 | public StatusRuntimeException asRuntimeException() { |
| 524 | return new StatusRuntimeException(this); |
| 525 | } |
| 526 | |
| 527 | /** |
| 528 | * Same as {@link #asRuntimeException()} but includes the provided trailers in the returned |
no outgoing calls