public function addFieldError($failureCode, $fieldResolved, $fieldType, $fieldTitle, $value, $defaultErrorMessage)
    {
        $this->errors[] = new FieldValidationError($failureCode, $fieldResolved, $fieldType, $fieldTitle, $value, $defaultErrorMessage);
        return $this;
    }
public function addFieldError($failureCode, $fieldResolved, $fieldType, $fieldTitle, $value, $defaultErrorMessage)
    {
        $this->errors[] = new FieldValidationError($failureCode, $fieldResolved, $fieldType, $fieldTitle, $value, $defaultErrorMessage);
        return $this;
    }
public function addFieldError ( $ failureCode , $ fieldResolved , $ fieldType , $ fieldTitle , $ value , $ defaultErrorMessage ) { $ this -> errors [ ] = new FieldValidationError ( $ failureCode , $ fieldResolved , $ fieldType , $ fieldTitle , $ value , $ defaultErrorMessage ) ; return $ this ; }
Adds an error that is associated with a form field.

@param string $failureCode         The code or slug that identifies this error's failure cause
@param string $fieldResolved       The machine-readable error code that uniquely identifies the error
@param string $fieldType           Can be 'field', 'meta', or 'tag' to determine the type of error field
@param string $fieldTitle          The title or human readable name for the failing field
@param string $value               The value that was invalid
@param string $defaultErrorMessage A default error message to display if we can't
Lookup another one using the failureCode

@return this
Adds an error that is associated with a form field .