Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ParameterNotFoundException.php

function ParameterNotFoundException::__construct

Parameters

string $key The requested parameter key:

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

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

\Throwable|null $previous The previous exception:

string[] $alternatives Some parameter name alternatives:

string|null $nonNestedAlternative The alternative parameter name when the user expected dot notation for nested parameters:

File

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

Class

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

Namespace

Symfony\Component\DependencyInjection\Exception

Code

public function __construct(string $key, ?string $sourceId = null, ?string $sourceKey = null, ?\Throwable $previous = null, array $alternatives = [], ?string $nonNestedAlternative = null, ?string $sourceExtensionName = null, ?string $extraMessage = null) {
    parent::__construct('', 0, $previous);
    $this->updateRepr();
}
RSS feed
Powered by Drupal