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 TypeMethodDescription@Nullable io.grpc.StatusExceptionhandleException(Throwable exception) Handle the given exception that occurred during gRPC server-side processing.
-
Method Details
-
handleException
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
nullif the exception cannot be classified
-