src/FormHandler.php
public function setError($param, $message, $translate = false, $translationParams = array())
    {
        $this->errors[] = new FormError($param, $message, $translate, $translationParams);

        // Call isValid to update valid status in restore data handlers
        $this->isValid();
    }
public function setError($param, $message, $translate = false, $translationParams = array())
    {
        $this->errors[] = new FormError($param, $message, $translate, $translationParams);

        // Call isValid to update valid status in restore data handlers
        $this->isValid();
    }
public function setError ( $ param , $ message , $ translate = false , $ translationParams = array ( ) ) { $ this -> errors [ ] = new FormError ( $ param , $ message , $ translate , $ translationParams ) ; // Call isValid to update valid status in restore data handlers $ this -> isValid ( ) ; }
Set a custom error on the form

@param $param
@param $message
@param bool|false $translate
@param array $translationParams
Set a custom error on the form