Skip to content

ContainerNotFoundException

github-actions edited this page Mar 27, 2026 · 1 revision

Class ContainerNotFoundException.

Exception thrown when a configuration key is not found in the container. This class MUST implement the PSR-11 NotFoundExceptionInterface.


  • Full name: \FastForward\Config\Exception\ContainerNotFoundException
  • Parent class: Exception
  • This class is marked as final and can't be subclassed
  • This class implements: NotFoundExceptionInterface
  • This class is a Final class

Methods

forKey

Creates a new exception instance for a missing configuration key.

public static forKey(string $key): self

This factory method SHOULD be used when a key lookup fails in the ConfigContainer.

  • This method is static. Parameters:
Parameter Type Description
$key string the key that was not found

Return Value:

a new instance of the exception describing the missing key


Clone this wiki locally