InvalidArgumentException
Class
extends
InvalidArgumentException
Final:
Yes
Class InvalidArgumentException.
Description
Specialized exception for handling invalid arguments within the configuration context. This class SHALL be used to provide meaningful errors when invalid data is passed to configuration components.
Methods
forNonStringKeyWithValue()
: self
Thrown when the key is not a string but a value is provided.
forUnreadableDirectory()
: self
Thrown when a given directory does not exist or is not readable.
Thrown when the key is not a string but a value is provided.
public
static
forNonStringKeyWithValue() : self
Return values
self
Description
the exception indicating the key must be a string
Thrown when a given directory does not exist or is not readable.
public
static
forUnreadableDirectory(
string
$directory) : self
Parameters
$directory
:
string
Description
the path to the invalid directory
Return values
self
Description
the exception indicating an invalid or unreadable directory