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

Method asException

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

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

()

Source from the content-addressed store, hash-verified

537 * to recover this {@link Status} instance when the returned exception is in the causal chain.
538 */
539 public StatusException asException() {
540 return new StatusException(this);
541 }
542
543 /**
544 * Same as {@link #asException()} but includes the provided trailers in the returned exception.

Calls

no outgoing calls