original_string: public function removeObjectError($key = null)
      {
          $this->_genericDestroy($key, 'error_list');
          $this->_hasErrors = false;
          return $this;
      }
code: public function removeObjectError($key = null)
      {
          $this->_genericDestroy($key, 'error_list');
          $this->_hasErrors = false;
          return $this;
      }
code_tokens: public function removeObjectError ( $ key = null ) { $ this -> _genericDestroy ( $ key , 'error_list' ) ; $ this -> _hasErrors = false ; return $ this ; }
docstring: remove single error, or all object errors
  
  @param string|null $key
  @return Object
docstring_tokens: remove single error or all object errors