public function 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

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/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();
}