public class ValidationException extends FunctionnalException
Modifier and Type | Field and Description |
---|---|
static String |
VALIDATION_ERROR |
Constructor and Description |
---|
ValidationException(Object bean)
Instantiates a new validation exception.
|
ValidationException(Object bean,
javax.validation.ConstraintViolation<?> constraintViolation)
Instantiates a new validation exception.
|
Modifier and Type | Method and Description |
---|---|
void |
addConstraintViolation(javax.validation.ConstraintViolation<?> constraintViolation)
Adds the constraint violation.
|
List<javax.validation.ConstraintViolation<?>> |
getConstraintViolationList() |
String |
getMessage() |
void |
setConstraintViolationList(List<javax.validation.ConstraintViolation<?>> constraintViolationList)
Sets the constraint violation list.
|
getBean, setBean
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final String VALIDATION_ERROR
public ValidationException(Object bean, javax.validation.ConstraintViolation<?> constraintViolation)
bean
- the beanconstraintViolation
- the constraint violationpublic ValidationException(Object bean)
bean
- the beanpublic List<javax.validation.ConstraintViolation<?>> getConstraintViolationList()
public void setConstraintViolationList(List<javax.validation.ConstraintViolation<?>> constraintViolationList)
constraintViolationList
- the constraintViolationList to setpublic void addConstraintViolation(javax.validation.ConstraintViolation<?> constraintViolation)
constraintViolation
- the constraint violationpublic String getMessage()
getMessage
in class Throwable
Copyright © 2019 City of Paris. All rights reserved.