Class SecurityGrpcExceptionHandler

java.lang.Object
org.springframework.grpc.server.security.SecurityGrpcExceptionHandler
All Implemented Interfaces:
GrpcExceptionHandler

public class SecurityGrpcExceptionHandler extends Object implements GrpcExceptionHandler
Exception handler for server-side exceptions.
Author:
Dave Syer
  • Constructor Details

    • SecurityGrpcExceptionHandler

      public SecurityGrpcExceptionHandler()
  • 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