Interface GrpcExceptionResponseHandler

All Known Implementing Classes:
GrpcAdviceExceptionHandler

public interface GrpcExceptionResponseHandler
An exception handler for errors in the grpc call execution (For both the grpc method implementations and the StreamObservers used to process incoming messages and sending outgoing errors).

Implementations must:

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handleError(ServerCall<?,?> serverCall, Throwable error)
    Handles an exception by closing the call with an appropriate Status.
  • Method Details

    • handleError

      void handleError(ServerCall<?,?> serverCall, Throwable error)
      Handles an exception by closing the call with an appropriate Status.
      Parameters:
      serverCall - The server call used to send the response status.
      error - The error to handle.