MCPcopy Create free account
hub / github.com/grpc/grpc-java / asRuntimeException

Method asRuntimeException

api/src/main/java/io/grpc/Status.java:523–525  ·  view source on GitHub ↗

Convert this Status to a RuntimeException. Use #fromThrowable to recover this Status instance when the returned exception is in the causal chain.

()

Source from the content-addressed store, hash-verified

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

Callers 15

handlerRemovedMethod · 0.95
channelInactiveMethod · 0.95
exceptionCaughtMethod · 0.95
closeMethod · 0.95
createStreamMethod · 0.95
operationCompleteMethod · 0.95
closedMethod · 0.80
startCallMethod · 0.80
processHeaderMethod · 0.80
getCompressedBodyMethod · 0.80

Calls

no outgoing calls