/**
  * @param ConstraintViolationListInterface $violations The violation list
  * @param string                           $message    The Exception message to throw.
  * @param int                              $code       The Exception code.
  * @param \Exception                       $previous   The previous exception used for the exception chaining
  */
 public function __construct(ConstraintViolationListInterface $violations, $message = "", $code = 0, \Exception $previous = null)
 {
     parent::__construct($message, $code, $previous);
     $this->violations = $violations;
 }