public function setErrorMessage($errorMessage)
    {
        $this->errorMessage = $errorMessage;
        $this->setValidator($this->getDefaultValidator());

        return $this;
    }
public function setErrorMessage($errorMessage)
    {
        $this->errorMessage = $errorMessage;
        $this->setValidator($this->getDefaultValidator());

        return $this;
    }
public function setErrorMessage ( $ errorMessage ) { $ this -> errorMessage = $ errorMessage ; $ this -> setValidator ( $ this -> getDefaultValidator ( ) ) ; return $ this ; }
Sets the error message for invalid values.

The error message has a string placeholder (%s) for the invalid value.

@param string $errorMessage

@return $this
Sets the error message for invalid values .