InvalidArgumentException

Class
extends InvalidArgumentException
Final: Yes

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

Description

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()

Creates an exception indicating an unsupported container initializer.

 : self
Methods

forUnsupportedInitializer()

Public Static

Creates an exception indicating an unsupported container initializer.

public static forUnsupportedInitializer( mixed  $value) : self

Description

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

Parameters
$value : mixed

Description

the value that was identified as unsupported

Return values
self

Description

a new InvalidArgumentException with a descriptive message