public class ValiktorReactiveExceptionHandler
Represents the WebExceptionHandler that handles ConstraintViolationException and returns an appropriate HTTP response.
| Constructor and Description |
|---|
ValiktorReactiveExceptionHandler(ValiktorConfiguration config,
org.springframework.http.codec.CodecConfigurer codecConfigurer)
Represents the WebExceptionHandler that handles ConstraintViolationException and returns an appropriate HTTP response.
|
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<java.lang.Void> |
handle(org.springframework.web.server.ServerWebExchange exchange,
java.lang.Throwable ex)
Handle ConstraintViolationException and returns 422 (Unprocessable Entity) status code
with the constraint violations.
|
public ValiktorReactiveExceptionHandler(ValiktorConfiguration config, org.springframework.http.codec.CodecConfigurer codecConfigurer)
Represents the WebExceptionHandler that handles ConstraintViolationException and returns an appropriate HTTP response.
config - specifies the class ValiktorConfigurationconfig - specifies the class ValiktorConfigurationpublic reactor.core.publisher.Mono<java.lang.Void> handle(org.springframework.web.server.ServerWebExchange exchange,
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