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