Interface DispatchExceptionHandler

All Known Implementing Classes:
RequestMappingHandlerAdapter

public interface DispatchExceptionHandler
Contract to map a Throwable to a HandlerResult.
Since:
6.0
Author:
Rossen Stoyanchev
  • Method Details

    • handleError

      reactor.core.publisher.Mono<HandlerResult> handleError(ServerWebExchange exchange, Throwable ex)
      Handler the given exception and resolve it to HandlerResult that can be used for rendering an HTTP response.
      Parameters:
      exchange - the current exchange
      ex - the exception to handle
      Returns:
      a Mono that emits a HandlerResult or the original exception