PHP Class eZ\Publish\Core\Base\Exceptions\BadStateException

Usage: throw new BadState( 'nodes', 'array' );
Inheritance: extends eZ\Publish\API\Repository\Exceptions\BadStateException, implements eZ\Publish\Core\Base\Translatable, use trait eZ\Publish\Core\Base\TranslatableBase
Show file Open project: ezsystems/ezpublish-kernel Class Usage Examples

Public Methods

Method Description
__construct ( string $argumentName, string $whatIsWrong, Exception $previous = null ) Generates: "Argument '{$argumentName}' has a bad state: {$whatIsWrong}".

Method Details

__construct() public method

Generates: "Argument '{$argumentName}' has a bad state: {$whatIsWrong}".
public __construct ( string $argumentName, string $whatIsWrong, Exception $previous = null )
$argumentName string
$whatIsWrong string
$previous Exception