public static function withViolationsAndMessage(ParamInterface $parameter, ConstraintViolationListInterface $violations, $message)
    {
        $exception = new self($message);
        $exception->parameter = $parameter;
        $exception->violations = $violations;

        return $exception;
    }
public static function withViolationsAndMessage(ParamInterface $parameter, ConstraintViolationListInterface $violations, $message)
    {
        $exception = new self($message);
        $exception->parameter = $parameter;
        $exception->violations = $violations;

        return $exception;
    }
public static function withViolationsAndMessage ( ParamInterface $ parameter , ConstraintViolationListInterface $ violations , $ message ) { $ exception = new self ( $ message ) ; $ exception -> parameter = $ parameter ; $ exception -> violations = $ violations ; return $ exception ; }
Do not use this method. It will be removed in 2.0.

@param ParamInterface                   $parameter
@param ConstraintViolationListInterface $violations
@param string                           $message

@return self

@internal
Do not use this method . It will be removed in 2 . 0 .