Class CompositeGrpcExceptionHandler

java.lang.Object
org.springframework.grpc.server.exception.CompositeGrpcExceptionHandler
All Implemented Interfaces:
GrpcExceptionHandler

public class CompositeGrpcExceptionHandler extends Object implements GrpcExceptionHandler
  • Constructor Details

    • CompositeGrpcExceptionHandler

      public CompositeGrpcExceptionHandler(GrpcExceptionHandler... exceptionHandlers)
  • Method Details

    • handleException

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