Class ValidationViolationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.hybris.platform.servicelayer.exceptions.BusinessException
de.hybris.platform.servicelayer.interceptor.InterceptorException
de.hybris.platform.validation.exceptions.ValidationViolationException
- All Implemented Interfaces:
Serializable
The ValidationViolationException is thrown during model saving when the given model and the configured
constraints doesn't match.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionValidationViolationException(Set<HybrisConstraintViolation> constraintViolations) Creates a new violation exception using given original violations. -
Method Summary
Modifier and TypeMethodDescriptionGets list of the Hybris violations wrappers for originalConstraintViolationaccessible byHybrisConstraintViolation.getConstraintViolation().Methods inherited from class de.hybris.platform.servicelayer.interceptor.InterceptorException
getInterceptor, getMessage, setInterceptorMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ValidationViolationException
Creates a new violation exception using given original violations.- Parameters:
constraintViolations- the constraint violation reported by the hibernate framework
-
-
Method Details
-
getHybrisConstraintViolations
Gets list of the Hybris violations wrappers for originalConstraintViolationaccessible byHybrisConstraintViolation.getConstraintViolation().
-