public function addError(ErrorStore $error)
    {
        $this->outputMode = self::MODE_ERROR;
        $this->errors[] = $error;
    }
public function addError(ErrorStore $error)
    {
        $this->outputMode = self::MODE_ERROR;
        $this->errors[] = $error;
    }
public function addError ( ErrorStore $ error ) { $ this -> outputMode = self :: MODE_ERROR ; $ this -> errors [ ] = $ error ; }
add an error store object to the Result payload

@param ErrorStore $error
add an error store object to the Result payload