public function getError($key, $index = null, $group = null)
    {
        return $this->validator->getError($key, $index, $group);
    }
public function getError($key, $index = null, $group = null)
    {
        return $this->validator->getError($key, $index, $group);
    }
public function getError ( $ key , $ index = null , $ group = null ) { return $ this -> validator -> getError ( $ key , $ index , $ group ) ; }
Gets the first validation error of a parameter.

@param string $key
@param string $index
@param string $group

@return string
Gets the first validation error of a parameter .