/** * Generates: Content fields did not validate * * Also sets the given $fieldErrors to the internal property, retrievable by getFieldErrors() * * @param \eZ\Publish\Core\FieldType\ValidationError[] $errors */ public function __construct(array $errors) { $this->errors = $errors; parent::__construct("Content fields did not validate"); }
/** * Generates: Content fields did not validate. * * Also sets the given $fieldErrors to the internal property, retrievable by getFieldErrors() * * @param \eZ\Publish\Core\FieldType\ValidationError[] $errors */ public function __construct(array $errors) { $this->errors = $errors; $this->setMessageTemplate('Content fields did not validate'); parent::__construct($this->getBaseTranslation()); }
public function __construct(APIContentFieldValidationException $e) { $this->errors = $e->getFieldErrors(); parent::__construct($e->getMessage(), $e->getCode(), $e); }