Class

eZ\Publish\Core\Base\Exceptions\InvalidArgumentValue

class InvalidArgumentValue extends InvalidArgumentException

Invalid Argument Type Exception implementation.

Usage: throw new InvalidArgument( 'nodes', 'array' );

Methods

__construct(string $argumentName, mixed $value, string|null $className = null, Exception $previous = null)

Generates: "Argument '{$argumentName}' is invalid: '{$value}' is wrong value[ in class '{$className}']".

Details

at line 28
public __construct(string $argumentName, mixed $value, string|null $className = null, Exception $previous = null)

Generates: "Argument '{$argumentName}' is invalid: '{$value}' is wrong value[ in class '{$className}']".

Parameters

string $argumentName
mixed $value
string|null $className Optionally to specify class in abstract/parent classes
Exception $previous