Class SecurityGrpcExceptionHandler
java.lang.Object
org.springframework.grpc.server.security.SecurityGrpcExceptionHandler
- All Implemented Interfaces:
GrpcExceptionHandler
Exception handler for server-side exceptions.
- Author:
- Dave Syer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable io.grpc.StatusExceptionhandleException(Throwable exception) Handle the given exception that occurred during gRPC server-side processing.
-
Constructor Details
-
SecurityGrpcExceptionHandler
public SecurityGrpcExceptionHandler()
-
-
Method Details
-
handleException
Description copied from interface:GrpcExceptionHandlerHandle the given exception that occurred during gRPC server-side processing.- Specified by:
handleExceptionin interfaceGrpcExceptionHandler- Parameters:
exception- the exception to handle- Returns:
- the status to return to the client, or
nullif the exception cannot be classified
-