InvalidArgumentException
extends InvalidArgumentException
in package
FinalYes
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.
Table of Contents
Methods
- forUnsupportedInitializer() : self
- Creates an exception indicating an unsupported container initializer.
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.
Parameters
- $value : mixed
-
the value that was identified as unsupported
Return values
self —a new InvalidArgumentException with a descriptive message