@Order
public class ReactiveConstraintViolationExceptionHandler
Represents the WebExceptionHandler that handles ConstraintViolationException and returns an appropriate HTTP response.
public ReactiveConstraintViolationExceptionHandler(@NotNull
ValiktorConfiguration config,
@NotNull
org.springframework.http.codec.CodecConfigurer codecConfigurer)
Represents the WebExceptionHandler that handles ConstraintViolationException and returns an appropriate HTTP response.
config - specifies the class ValiktorConfiguration@NotNull
public reactor.core.publisher.Mono<java.lang.Void> handle(@NotNull
org.springframework.web.server.ServerWebExchange exchange,
@NotNull
java.lang.Throwable ex)
Handle ConstraintViolationException and returns 422 (Unprocessable Entity) status code with the constraint violations.
exchange - specifies the current webflux requestex - specifies the ConstraintViolationException