You are here

public function ParameterNotFoundException::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/Exception/ParameterNotFoundException.php \Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException::__construct()

Constructor.

Parameters

string $key The requested parameter key:

string $sourceId The service id that references the non-existent parameter:

string $sourceKey The parameter key that references the non-existent parameter:

\Exception $previous The previous exception:

string[] $alternatives Some parameter name alternatives:

File

vendor/symfony/dependency-injection/Exception/ParameterNotFoundException.php, line 35

Class

ParameterNotFoundException
This exception is thrown when a non-existent parameter is used.

Namespace

Symfony\Component\DependencyInjection\Exception

Code

public function __construct($key, $sourceId = null, $sourceKey = null, \Exception $previous = null, array $alternatives = array()) {
  $this->key = $key;
  $this->sourceId = $sourceId;
  $this->sourceKey = $sourceKey;
  $this->alternatives = $alternatives;
  parent::__construct('', 0, $previous);
  $this
    ->updateRepr();
}