Исключение ServiceNotFoundException
класс ServiceNotFoundException расширяет InvalidArgumentException и реализует NotFoundExceptionInterface
Это исключение выбрасывается, когда запрашивается несуществующая служба.
Методы
| __construct(string $id, string $sourceId = null, Exception $previous = null, array $alternatives = array(), string $msg = null) | ||
| getId() | ||
| getSourceId() | ||
| getAlternatives() |
Подробности
__construct(string $id, string $sourceId = null, Exception $previous = null, array $alternatives = array(), string $msg = null)
Параметры
| string | $id | |
| string | $sourceId | |
| Exception | $previous | |
| array | $alternatives | |
| string | $msg |
getId()
getSourceId()
getAlternatives()
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/DependencyInjection/Exception/ServiceNotFoundException.html