Package org.springframework.web.server
Interface WebExceptionHandler
- All Known Implementing Classes:
ResponseStatusExceptionHandler
,WebFluxResponseStatusExceptionHandler
public interface WebExceptionHandler
Contract for handling exceptions during web server exchange processing.
- Since:
- 5.0
- Author:
- Rossen Stoyanchev
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>
handle
(ServerWebExchange exchange, Throwable ex) Handle the given exception.
-
Method Details
-
handle
Handle the given exception. A completion signal through the return value indicates error handling is complete while an error signal indicates the exception is still not handled.- Parameters:
exchange
- the current exchangeex
- the exception to handle- Returns:
Mono<Void>
to indicate when exception handling is complete
-