@groovy.transform.CompileStatic class ConstraintViolationUtils extends java.lang.Object
Utility methods for handling ConstraintViolationException
Constructor and description |
---|
ConstraintViolationUtils() |
Type Params | Return Type | Name and description |
---|---|---|
|
static org.springframework.validation.Errors |
asErrors(java.lang.Object object, ConstraintViolationException e) Converts a ConstraintViolationException to errors |
|
static org.springframework.validation.Errors |
asErrors(java.lang.Object object, java.util.Set<ConstraintViolation> constraintViolations) Converts a ConstraintViolation instances to errors |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Converts a ConstraintViolationException to errors
object
- The validated objecte
- The exceptionConverts a ConstraintViolation instances to errors
object
- The validated objecte
- The exception