original_string: protected function resetXMLInternalErrorsSettingAndThrowIfXMLErrorOccured()
      {
          if ($this->hasXMLErrorOccured()) {
              $this->resetXMLInternalErrorsSetting();
              throw new XMLProcessingException($this->getLastXMLErrorMessage());
          }
  
          $this->resetXMLInternalErrorsSetting();
      }
code: protected function resetXMLInternalErrorsSettingAndThrowIfXMLErrorOccured()
      {
          if ($this->hasXMLErrorOccured()) {
              $this->resetXMLInternalErrorsSetting();
              throw new XMLProcessingException($this->getLastXMLErrorMessage());
          }
  
          $this->resetXMLInternalErrorsSetting();
      }
code_tokens: protected function resetXMLInternalErrorsSettingAndThrowIfXMLErrorOccured ( ) { if ( $ this -> hasXMLErrorOccured ( ) ) { $ this -> resetXMLInternalErrorsSetting ( ) ; throw new XMLProcessingException ( $ this -> getLastXMLErrorMessage ( ) ) ; } $ this -> resetXMLInternalErrorsSetting ( ) ; }
docstring: Throws an XMLProcessingException if an error occured.
  It also always resets the "libxml_use_internal_errors" setting back to its initial value.
  
  @return void
  @throws \Box\Spout\Reader\Exception\XMLProcessingException
docstring_tokens: Throws an XMLProcessingException if an error occured . It also always resets the libxml_use_internal_errors setting back to its initial value .