-
Notifications
You must be signed in to change notification settings - Fork 0
InvalidArgumentException
Felipe Sayão Lobato Abreu edited this page Jul 3, 2025
·
1 revision
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
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
Automatically generated on 2025-07-03