Skip to content

InvalidArgumentException

github-actions edited this page Mar 27, 2026 · 2 revisions

Exception thrown when an invalid or unsupported argument is passed to a function or method within the container.

This exception helps identify and handle errors related to invalid or unrecognized arguments, especially when an unsupported initializer type is provided to the container builder.


  • Full name: \FastForward\Container\Exception\InvalidArgumentException
  • Parent class: InvalidArgumentException
  • This class is marked as final and can't be subclassed
  • This class is a Final class

Methods

forUnsupportedInitializer

Creates an exception indicating an unsupported container initializer.

public static forUnsupportedInitializer(mixed $value): self

This method SHALL be used to indicate that an unrecognized initializer type was passed to the container builder function.

  • This method is static. Parameters:
Parameter Type Description
$value mixed the value that was identified as unsupported

Return Value:

a new InvalidArgumentException with a descriptive message


Clone this wiki locally