Package org.mockserver.grpc
Class GrpcException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.mockserver.grpc.GrpcException
- All Implemented Interfaces:
Serializable
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:
-
Constructor Summary
ConstructorsConstructorDescriptionGrpcException(String message) GrpcException(String message, Throwable cause) GrpcException(String message, Throwable cause, GrpcStatusMapper.GrpcStatusCode statusCode) GrpcException(String message, GrpcStatusMapper.GrpcStatusCode statusCode) -
Method Summary
Modifier and TypeMethodDescriptionThegrpc-statusto report for this failure.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
GrpcException
-
GrpcException
-
GrpcException
-
GrpcException
-
-
Method Details
-
getStatusCode
Thegrpc-statusto report for this failure.
-