public ValiktorExceptionHandler<T>
Represents the HTTP exception handler to map ConstraintViolationException to an appropriate HTTP response.
class ValiktorResponse@NotNull ValiktorResponse<T> handle(@NotNull org.valiktor.ConstraintViolationException exception, @NotNull java.util.Locale locale)
Handles ConstraintViolationException and returns a class ValiktorResponse with status code, headers and body.
exception - specifies the ConstraintViolationExceptionlocale - specifies the Locale extracted from requestclass ValiktorResponse with status code, headers and bodyclass ValiktorResponse