/** * Marque le champ en erreur * * @param Field $field Champ responçable de l'erreur * @param boolean $throw Lancer une exception si champ ignoré oui/non * * @return void * @throws Internal si l'erreur ne doit pas être marqué */ protected function markError(Field $field, $throw = true) { if ($field->isRequired() === true) { return $this->throwError($field); } if ($throw === true) { throw new Internal('Ignore field'); } }