Package org.hibernate.validator.engine
Interface HibernateConstraintViolation<T>
-
- All Superinterfaces:
ConstraintViolation<T>
- All Known Implementing Classes:
ConstraintViolationImpl
public interface HibernateConstraintViolation<T> extends ConstraintViolation<T>
A customConstraintViolationwhich allows to get additional information for a constraint violation.- Since:
- 5.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <C> CgetDynamicPayload(Class<C> type)-
Methods inherited from interface jakarta.validation.ConstraintViolation
getConstraintDescriptor, getExecutableParameters, getExecutableReturnValue, getInvalidValue, getLeafBean, getMessage, getMessageTemplate, getPropertyPath, getRootBean, getRootBeanClass, unwrap
-
-
-
-
Method Detail
-
getDynamicPayload
<C> C getDynamicPayload(Class<C> type)
- Parameters:
type- The type of payload to retrieve- Returns:
- an instance of the specified type set by the user via
HibernateConstraintValidatorContext.withDynamicPayload(Object)ornullif no constraint payload if the given type has been set.
-
-