Class ExceptionHandlingwebHandler

java.lang.Object
org.springframework.web.server.handler.webHandlerDecorator
org.springframework.web.server.handler.ExceptionHandlingwebHandler
All Implemented Interfaces:
webHandler

public class ExceptionHandlingwebHandler extends webHandlerDecorator
webHandler decorator that invokes one or more webExceptionHandlers after the delegate webHandler.
Since:
5.0
Author:
Rossen Stoyanchev
  • Field Details

  • Constructor Details

    • ExceptionHandlingwebHandler

      public ExceptionHandlingwebHandler(webHandler delegate, List<webExceptionHandler> handlers)
      Create an ExceptionHandlingwebHandler for the given delegate.
      Parameters:
      delegate - the webHandler delegate
      handlers - the webExceptionHandlers to apply
  • Method Details

    • getExceptionHandlers

      public List<webExceptionHandler> getExceptionHandlers()
      Return a read-only list of the configured exception handlers.
    • handle

      public reactor.core.publisher.Mono<Void> handle(ServerwebExchange exchange)
      Description copied from interface: webHandler
      Handle the web server exchange.
      Specified by:
      handle in interface webHandler
      Overrides:
      handle in class webHandlerDecorator
      Parameters:
      exchange - the current server exchange
      Returns:
      Mono<Void> to indicate when request handling is complete