Sets the constraint violations associated with this exception.
\Drupal\Core\Entity\EntityConstraintViolationListInterface $violations: The constraint violations.
public function setViolations(EntityConstraintViolationListInterface $violations) { $this->violations = $violations; }