Spec-Zone.ru › Symfony 4.1

Исключение ParameterNotFoundException

класс ParameterNotFoundException расширяет InvalidArgumentException и реализует NotFoundExceptionInterface

Это исключение выбрасывается, когда используется несуществующий параметр.

Методы

__construct(string $key, string $sourceId = null, string $sourceKey = null, Exception $previous = null, array $alternatives = array(), string $nonNestedAlternative = null)
updateRepr()
getKey()
getSourceId()
getSourceKey()
setSourceId($sourceId)
setSourceKey($sourceKey)

Подробности

__construct(string $key, string $sourceId = null, string $sourceKey = null, Exception $previous = null, array $alternatives = array(), string $nonNestedAlternative = null)

Параметры

string $key Запрашиваемый ключ параметра
string $sourceId Идентификатор сервиса, ссылающегося на несуществующий параметр
string $sourceKey Ключ параметра, ссылающегося на несуществующий параметр
Exception $previous Предыдущее исключение
array $alternatives Альтернативные имена параметров
string $nonNestedAlternative Альтернативное имя параметра, когда пользователь ожидал нотацию точек для вложенных параметров

updateRepr()

getKey()

getSourceId()

getSourceKey()

setSourceId($sourceId)

Параметры

$sourceId

setSourceKey($sourceKey)

Параметры

$sourceKey

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/DependencyInjection/Exception/ParameterNotFoundException.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API