@Test public void toStatusRuntimeException() throws Exception { StatusRuntimeException sre = StatusProto.toStatusRuntimeException(STATUS_PROTO); com.google.rpc.Status extractedStatusProto = StatusProto.fromThrowable(sre); assertEquals(STATUS_PROTO.getCode(), sre.getStatus().getCode().value()); assertEquals(STATUS_PROTO.getMessage(), sre.getStatus().getDescription()); assertEquals(STATUS_PROTO, extractedStatusProto); }
public static StatusRuntimeException toStatusRuntimeException(com.google.rpc.Status statusProto) { return toStatus(statusProto).asRuntimeException(toMetadata(statusProto)); }
StatusProto { public static StatusRuntimeException toStatusRuntimeException(com.google.rpc.Status statusProto) { return toStatus(statusProto).asRuntimeException(toMetadata(statusProto)); } }
StatusProto { public static StatusRuntimeException toStatusRuntimeException(com.google.rpc.Status statusProto) { return toStatus(statusProto).asRuntimeException(toMetadata(statusProto)); } private  StatusProto(); }
StatusProto { public static StatusRuntimeException toStatusRuntimeException(com.google.rpc.Status statusProto) { return toStatus(statusProto).asRuntimeException(toMetadata(statusProto)); } private  StatusProto(); static StatusRuntimeException toStatusRuntimeException(com.google.rpc.Status statusProto); static StatusRuntimeException toStatusRuntimeException(
      com.google.rpc.Status statusProto, Metadata metadata); static StatusException toStatusException(com.google.rpc.Status statusProto); static StatusException toStatusException(
      com.google.rpc.Status statusProto, Metadata metadata); @Nullable static com.google.rpc.Status fromThrowable(Throwable t); @Nullable static com.google.rpc.Status fromStatusAndTrailers(Status status, Metadata trailers); }
StatusProto { public static StatusRuntimeException toStatusRuntimeException(com.google.rpc.Status statusProto) { return toStatus(statusProto).asRuntimeException(toMetadata(statusProto)); } private  StatusProto(); static StatusRuntimeException toStatusRuntimeException(com.google.rpc.Status statusProto); static StatusRuntimeException toStatusRuntimeException(
      com.google.rpc.Status statusProto, Metadata metadata); static StatusException toStatusException(com.google.rpc.Status statusProto); static StatusException toStatusException(
      com.google.rpc.Status statusProto, Metadata metadata); @Nullable static com.google.rpc.Status fromThrowable(Throwable t); @Nullable static com.google.rpc.Status fromStatusAndTrailers(Status status, Metadata trailers);  }