Class GrpcException

All Implemented Interfaces:
Serializable

public class GrpcException extends RuntimeException
A gRPC protocol-level failure, carrying the grpc-status the client should be told.

The status matters: callers previously inferred it by matching on the message text (only "unknown gRPC method" was special-cased, everything else became INTERNAL), so a message that exceeded the receive-size limit was reported as INTERNAL rather than RESOURCE_EXHAUSTED as the specification and both grpc-java and grpc-go require. Carrying the status on the exception removes the string matching.

See Also: