Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\DependencyInjection\Exception; Chris@0: Chris@0: /** Chris@0: * This exception wraps exceptions whose messages contain a reference to an env parameter. Chris@0: * Chris@0: * @author Nicolas Grekas Chris@0: */ Chris@0: class EnvParameterException extends InvalidArgumentException Chris@0: { Chris@0: public function __construct(array $usedEnvs, \Exception $previous = null) Chris@0: { Chris@0: parent::__construct(sprintf('Incompatible use of dynamic environment variables "%s" found in parameters.', implode('", "', $usedEnvs)), 0, $previous); Chris@0: } Chris@0: }