接口 WebExceptionHandler
public interface WebExceptionHandler
Contract for handling exceptions during web server exchange processing.- 从以下版本开始:
- 5.0
- 作者:
- Rossen Stoyanchev
方法详细资料
handle
reactor.core.publisher.Mono<Void> handle(ServerWebExchange exchange, Throwable ex)
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.- 参数:
exchange
- the current exchangeex
- the exception to handle- 返回:
Mono<Void>
to indicate when exception handling is complete