ParameterNotFoundException
class ParameterNotFoundException extends InvalidArgumentException
This exception is thrown when a non-existent parameter is used.
Methods
| __construct(string $key, string $sourceId = null, string $sourceKey = null, Exception $previous = null, array $alternatives = array()) Constructor. | ||
| updateRepr() | ||
| getKey() | ||
| getSourceId() | ||
| getSourceKey() | ||
| setSourceId($sourceId) | ||
| setSourceKey($sourceKey) |
Details
__construct(string $key, string $sourceId = null, string $sourceKey = null, Exception $previous = null, array $alternatives = array())
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 |
| array | $alternatives | Some parameter name alternatives |
updateRepr()
getKey()
getSourceId()
getSourceKey()
setSourceId($sourceId)
Parameters
| $sourceId |
setSourceKey($sourceKey)
Parameters
| $sourceKey |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/DependencyInjection/Exception/ParameterNotFoundException.html