List of usage examples for org.springframework.web.server WebExceptionHandler handle
Mono<Void> handle(ServerWebExchange exchange, Throwable ex);
From source file:org.springframework.web.server.handler.ExceptionHandlingWebHandler.java
@Override public Mono<Void> handle(ServerWebExchange exchange) { Mono<Void> mono;//from ww w.j a v a2 s . c om try { mono = getDelegate().handle(exchange); } catch (Throwable ex) { mono = Mono.error(ex); } for (WebExceptionHandler exceptionHandler : this.exceptionHandlers) { mono = mono.otherwise(ex -> exceptionHandler.handle(exchange, ex)); } return mono.otherwise(ex -> handleUnresolvedException(exchange, ex)); }