asException

Available in a dev version: 0․11․0-grpc-186

How to configure

fun asException(description: String? = null, trailers: GrpcMetadata? = null): GrpcStatusException(source)

Converts this status code to a GrpcStatusException with optional description and trailers.