Interface GrpcExceptionHandler

All Known Implementing Classes:
CompositeGrpcExceptionHandler, GrpcAdviceExceptionHandler, SecurityGrpcExceptionHandler

public interface GrpcExceptionHandler
Defines an exception handler for handling exceptions that occur during gRPC server-side processing. Implementations of this interface can be used to customize the error handling behavior of a gRPC server.
Author:
Dave Syer
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable io.grpc.StatusException
    Handle the given exception that occurred during gRPC server-side processing.
  • Method Details

    • handleException

      @Nullable io.grpc.StatusException handleException(Throwable exception)
      Handle the given exception that occurred during gRPC server-side processing.
      Parameters:
      exception - the exception to handle
      Returns:
      the status to return to the client, or null if the exception cannot be classified