eZPublishCommunityProject  2013.5
eZ\Publish\Core\Base\Exceptions\InvalidArgumentType Class Reference

Invalid Argument Type Exception implementation. More...

+ Inheritance diagram for eZ\Publish\Core\Base\Exceptions\InvalidArgumentType:
+ Collaboration diagram for eZ\Publish\Core\Base\Exceptions\InvalidArgumentType:

Public Member Functions

 __construct ($argumentName, $expectedType, $value=null, Exception $previous=null)
 Generates: "Argument '{$argumentName}' is invalid: expected value to be of type '{$expectedType}'[, got '{$value}']". More...
 
- Public Member Functions inherited from eZ\Publish\Core\Base\Exceptions\InvalidArgumentException
 __construct ($argumentName, $whatIsWrong, Exception $previous=null)
 Generates: "Argument '{$argumentName}' is invalid: {$whatIsWrong}". More...
 

Detailed Description

Invalid Argument Type Exception implementation.

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

Constructor & Destructor Documentation

eZ\Publish\Core\Base\Exceptions\InvalidArgumentType::__construct (   $argumentName,
  $expectedType,
  $value = null,
Exception  $previous = null 
)

Generates: "Argument '{$argumentName}' is invalid: expected value to be of type '{$expectedType}'[, got '{$value}']".

Parameters
string$argumentName
string$expectedType
mixed | null$valueOptionally to output the type that was received
\Exception | null$previous

The documentation for this class was generated from the following file: