Class

eZ\Publish\Core\Base\Exceptions\ContentValidationException

class ContentValidationException extends ContentValidationException implements Translatable

This Exception is thrown on create or update content one or more given fields are not valid.

Methods

__construct(string $messageTemplate, array $parameters = array())

Details

at line 28
public __construct(string $messageTemplate, array $parameters = array())

Parameters

string $messageTemplate The message template, with placeholders for parameters. E.g. "Content with ID %contentId% could not be found".
array $parameters Hash map with param placeholder as key and its corresponding value. E.g. array('%contentId%' => 123).