public interface ConstraintViolationAdviceTrait
ConstraintViolationException,
Violation,
ConstraintViolationProblem,
ConstraintViolationProblem.TYPE_VALUE,
BaseValidationAdviceTrait.defaultConstraintViolationStatus()LOG| Modifier and Type | Method and Description |
|---|---|
default Violation |
createViolation(javax.validation.ConstraintViolation violation) |
default javax.ws.rs.core.Response.StatusType |
defaultConstraintViolationStatus() |
default String |
formatFieldName(String fieldName)
Format the name of a violating field (e.g.
|
default org.springframework.http.ResponseEntity<org.zalando.problem.Problem> |
handleConstraintViolation(javax.validation.ConstraintViolationException exception,
org.springframework.web.context.request.NativeWebRequest request) |
default org.springframework.http.ResponseEntity<org.zalando.problem.Problem> |
newConstraintViolationProblem(Throwable throwable,
Collection<Violation> stream,
org.springframework.web.context.request.NativeWebRequest request) |
default Violation createViolation(javax.validation.ConstraintViolation violation)
@ExceptionHandler
default org.springframework.http.ResponseEntity<org.zalando.problem.Problem> handleConstraintViolation(javax.validation.ConstraintViolationException exception,
org.springframework.web.context.request.NativeWebRequest request)
default javax.ws.rs.core.Response.StatusType defaultConstraintViolationStatus()
default String formatFieldName(String fieldName)
fieldName - the field name to formatdefault org.springframework.http.ResponseEntity<org.zalando.problem.Problem> newConstraintViolationProblem(Throwable throwable, Collection<Violation> stream, org.springframework.web.context.request.NativeWebRequest request)
Copyright © 2015–2017 Zalando SE. All rights reserved.