Model/Validator/Rule.php
public function getErrorMessage() {
        if($this->errorMessage) {
            return $this->errorMessage;
        }

        return sprintf(self::$defaultErrorMessagePattern, $this->getName());
    }
public function getErrorMessage() {
        if($this->errorMessage) {
            return $this->errorMessage;
        }

        return sprintf(self::$defaultErrorMessagePattern, $this->getName());
    }
public function getErrorMessage ( ) { if ( $ this -> errorMessage ) { return $ this -> errorMessage ; } return sprintf ( self :: $ defaultErrorMessagePattern , $ this -> getName ( ) ) ; }
Returns error message. If the error message has not been defined in the object constructor the default message will be returned.

@return string
Returns error message . If the error message has not been defined in the object constructor the default message will be returned .