Top Description Methods
org.springframework.web.server

public Interface WebExceptionHandler

Known Direct Implementers
org.springframework.web.server.handler.ExceptionHandlingWebHandler.CheckpointInsertingHandler, org.springframework.web.server.handler.ResponseStatusExceptionHandler
Imports
reactor.core.publisher.Mono

Contract for handling exceptions during web server exchange processing.
Author
Rossen Stoyanchev
Since
5.0

Method Summary

Modifier and TypeMethod and Description
public Mono<Void>

Returns:

Mono<Void> to indicate when exception handling is complete
handle
(ServerWebExchange
the current exchange
exchange
,
Throwable
the exception to handle
ex
)

Handle the given exception.

Method Detail

handleback to summary
public 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.

Parameters
exchange:ServerWebExchange

the current exchange

ex:Throwable

the exception to handle

Returns:Mono<Void>

Mono<Void> to indicate when exception handling is complete