ContainerNotFoundException
Class
extends
Exception
implements
NotFoundExceptionInterface
Final:
Yes
Class ContainerNotFoundException.
Description
Exception thrown when a configuration key is not found in the container. This class MUST implement the PSR-11 NotFoundExceptionInterface.
Interfaces
Methods
forKey()
: self
Creates a new exception instance for a missing configuration key.
Creates a new exception instance for a missing configuration key.
public
static
forKey(
string
$key) : self
Description
This factory method SHOULD be used when a key lookup fails in the ConfigContainer.
Parameters
$key
:
string
Description
the key that was not found
Return values
self
Description
a new instance of the exception describing the missing key