ParameterNotFoundException
extends InvalidArgumentException
in package
implements
NotFoundExceptionInterface
This exception is thrown when a non-existent parameter is used.
Tags
Interfaces, Classes and Traits
- NotFoundExceptionInterface
- No entry was found in the container.
Table of Contents
- $alternatives : mixed
- $key : mixed
- $nonNestedAlternative : mixed
- $sourceId : mixed
- $sourceKey : mixed
- __construct() : mixed
- getKey() : mixed
- getSourceId() : mixed
- getSourceKey() : mixed
- setSourceId() : mixed
- setSourceKey() : mixed
- updateRepr() : mixed
Properties
$alternatives
private
mixed
$alternatives
$key
private
mixed
$key
$nonNestedAlternative
private
mixed
$nonNestedAlternative
$sourceId
private
mixed
$sourceId
$sourceKey
private
mixed
$sourceKey
Methods
__construct()
public
__construct(string $key[, string|null $sourceId = null ][, string|null $sourceKey = null ][, Throwable|null $previous = null ][, array<string|int, string> $alternatives = [] ][, string|null $nonNestedAlternative = null ]) : mixed
Parameters
- $key : string
-
The requested parameter key
- $sourceId : string|null = null
-
The service id that references the non-existent parameter
- $sourceKey : string|null = null
-
The parameter key that references the non-existent parameter
- $previous : Throwable|null = null
-
The previous exception
- $alternatives : array<string|int, string> = []
-
Some parameter name alternatives
- $nonNestedAlternative : string|null = null
-
The alternative parameter name when the user expected dot notation for nested parameters
Return values
mixed —getKey()
public
getKey() : mixed
Return values
mixed —getSourceId()
public
getSourceId() : mixed
Return values
mixed —getSourceKey()
public
getSourceKey() : mixed
Return values
mixed —setSourceId()
public
setSourceId(string|null $sourceId) : mixed
Parameters
- $sourceId : string|null
Return values
mixed —setSourceKey()
public
setSourceKey(string|null $sourceKey) : mixed
Parameters
- $sourceKey : string|null
Return values
mixed —updateRepr()
public
updateRepr() : mixed