spring-framework / org.springframework.web.server / WebExceptionHandler

WebExceptionHandler

interface WebExceptionHandler

Contract for handling exceptions during web server exchange processing.

Author
Rossen Stoyanchev

Since
5.0

Functions

handle

abstract fun handle(exchange: ServerWebExchange, ex: Throwable): Mono<Void>

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.

Inheritors

ResponseStatusExceptionHandler

open class ResponseStatusExceptionHandler : WebExceptionHandler

Handle ResponseStatusException by setting the response status.