public interface GrpcExceptionResponseHandler
StreamObservers used to process incoming messages and sending outgoing errors).
Implementations must:
ServerCall.close(Status, Metadata) before returning| Modifier and Type | Method and Description |
|---|---|
void |
handleError(io.grpc.ServerCall<?,?> serverCall,
Throwable error)
Handles an exception by closing the call with an appropriate
Status. |
void handleError(io.grpc.ServerCall<?,?> serverCall,
Throwable error)
Status.serverCall - The server call used to send the response status.error - The error to handle.