code: public static StatusException toStatusException(com.google.rpc.Status statusProto) {
      return toStatus(statusProto).asException(toMetadata(statusProto));
    }
docs: Convert a {@link com.google.rpc.Status} instance to a {@link StatusException}.
  
  <p>The returned {@link StatusException} will wrap a {@link Status} whose code and description
  are set from the code and message in {@code statusProto}. {@code statusProto} will be
  serialized and placed into the metadata of the returned {@link StatusException}.
  
  @throws IllegalArgumentException if the value of {@code statusProto.getCode()} is not a valid
  gRPC status code.
  @since 1.3.0