W3cubDocs

/Symfony 4.1

ServiceNotFoundException

class ServiceNotFoundException extends InvalidArgumentException implements NotFoundExceptionInterface

This exception is thrown when a non-existent service is requested.

Methods

__construct(string $id, string $sourceId = null, Exception $previous = null, array $alternatives = array(), string $msg = null)
getId()
getSourceId()
getAlternatives()

Details

__construct(string $id, string $sourceId = null, Exception $previous = null, array $alternatives = array(), string $msg = null)

Parameters

string $id
string $sourceId
Exception $previous
array $alternatives
string $msg

getId()

getSourceId()

getAlternatives()