RequestExceptionHandler

Functions

Link copied to clipboard
abstract fun handle(request: ServerRequest, throwable: Throwable): Mono<ServerResponse>

The error response of a request that failed before its response started.

Link copied to clipboard
open fun handleInBody(request: ServerRequest, throwable: Throwable): ErrorInfo

The error a response reports in its body, because its status is already 200: the error event of an SSE stream that fails, the error of a batch result. Since 9.3.0 it is mapped like handle's response, so an unexpected failure is InternalServerError with a generic message here too.