DefaultGlobalExceptionHandler

class DefaultGlobalExceptionHandler(errorStrategy: WebFluxErrorStrategy = DefaultWebFluxErrorStrategy) : WebExceptionHandler, Ordered

Constructors

Link copied to clipboard
constructor(errorStrategy: WebFluxErrorStrategy = DefaultWebFluxErrorStrategy)

Properties

Link copied to clipboard
open override val order: Int

Functions

Link copied to clipboard
fun ServerHttpRequest.formatRequest(): String
Link copied to clipboard
open override fun getOrder(): Int
Link copied to clipboard
open override fun handle(exchange: ServerWebExchange, ex: Throwable): Mono<Void>

Writes the error and logs it by the status it was answered with (requestFailure): a 404 for a missing static resource is one line, a 5xx keeps its stack trace. A response committed before the error, or one whose status cannot be read, is logged with the stack trace.