Class CompositeGrpcExceptionHandler
java.lang.Object
org.springframework.grpc.server.exception.CompositeGrpcExceptionHandler
- All Implemented Interfaces:
GrpcExceptionHandler
-
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
-
CompositeGrpcExceptionHandler
-
-
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
-