public function rejectField($errorCode, $fieldResolved, $fieldTitle, $value, $message = '')
    {
        $this->addFieldError($errorCode, $fieldResolved, 'field', $fieldTitle, $value, $message==''?"$fieldTitle is required.":$message);
        return $this;
    }
public function rejectField($errorCode, $fieldResolved, $fieldTitle, $value, $message = '')
    {
        $this->addFieldError($errorCode, $fieldResolved, 'field', $fieldTitle, $value, $message==''?"$fieldTitle is required.":$message);
        return $this;
    }
public function rejectField ( $ errorCode , $ fieldResolved , $ fieldTitle , $ value , $ message = '' ) { $ this -> addFieldError ( $ errorCode , $ fieldResolved , 'field' , $ fieldTitle , $ value , $ message == '' ? "$fieldTitle is required." : $ message ) ; return $ this ; }
Adds a field error to the specified field

@param string $errorCode     The error code to use
@param string $fieldResolved The machine readable field identifier
@param string $fieldTitle    The human readable field name
@param string $value         The value to check
@param string $message       (optional) A default error message to display if one cannot be located.

@return this
Adds a field error to the specified field