ParameterNotFoundException
extends InvalidArgumentException
in package
implements
NotFoundExceptionInterface
This exception is thrown when a non-existent parameter is used.
Tags
Table of Contents
Interfaces
- NotFoundExceptionInterface
- No entry was found in the container.
Properties
- $alternatives : array<string|int, mixed>
- $key : string
- $nonNestedAlternative : string|null
- $sourceId : string|null
- $sourceKey : string|null
Methods
- __construct() : mixed
- getKey() : mixed
- getSourceId() : mixed
- getSourceKey() : mixed
- setSourceId() : mixed
- setSourceKey() : mixed
- updateRepr() : mixed
Properties
$alternatives
private
array<string|int, mixed>
$alternatives
$key
private
string
$key
$nonNestedAlternative
private
string|null
$nonNestedAlternative
$sourceId
private
string|null
$sourceId
$sourceKey
private
string|null
$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
getKey()
public
getKey() : mixed
getSourceId()
public
getSourceId() : mixed
getSourceKey()
public
getSourceKey() : mixed
setSourceId()
public
setSourceId(string|null $sourceId) : mixed
Parameters
- $sourceId : string|null
setSourceKey()
public
setSourceKey(string|null $sourceKey) : mixed
Parameters
- $sourceKey : string|null
updateRepr()
public
updateRepr() : mixed