Class ExceptionHandlingWebHandler
java.lang.Object
org.springframework.web.server.handler.WebHandlerDecorator
org.springframework.web.server.handler.ExceptionHandlingWebHandler
- All Implemented Interfaces:
- WebHandler
WebHandler decorator that invokes one or more 
WebExceptionHandlers
 after the delegate WebHandler.- Since:
- 5.0
- Author:
- Rossen Stoyanchev
- 
Constructor SummaryConstructorsConstructorDescriptionExceptionHandlingWebHandler(WebHandler delegate, List<WebExceptionHandler> handlers) Create anExceptionHandlingWebHandlerfor the given delegate.
- 
Method SummaryModifier and TypeMethodDescriptionReturn a read-only list of the configured exception handlers.reactor.core.publisher.Mono<Void>handle(ServerWebExchange exchange) Handle the web server exchange.Methods inherited from class org.springframework.web.server.handler.WebHandlerDecoratorgetDelegate, toString
- 
Constructor Details- 
ExceptionHandlingWebHandlerCreate anExceptionHandlingWebHandlerfor the given delegate.- Parameters:
- delegate- the WebHandler delegate
- handlers- the WebExceptionHandlers to apply
 
 
- 
- 
Method Details- 
getExceptionHandlersReturn a read-only list of the configured exception handlers.
- 
handleDescription copied from interface:WebHandlerHandle the web server exchange.- Specified by:
- handlein interface- WebHandler
- Overrides:
- handlein class- WebHandlerDecorator
- Parameters:
- exchange- the current server exchange
- Returns:
- Mono<Void>to indicate when request handling is complete
 
 
-