protected function resetXMLInternalErrorsSettingAndThrowIfXMLErrorOccured()
    {
        if ($this->hasXMLErrorOccured()) {
            $this->resetXMLInternalErrorsSetting();
            throw new XMLProcessingException($this->getLastXMLErrorMessage());
        }

        $this->resetXMLInternalErrorsSetting();
    }
protected function resetXMLInternalErrorsSettingAndThrowIfXMLErrorOccured()
    {
        if ($this->hasXMLErrorOccured()) {
            $this->resetXMLInternalErrorsSetting();
            throw new XMLProcessingException($this->getLastXMLErrorMessage());
        }

        $this->resetXMLInternalErrorsSetting();
    }
protected function resetXMLInternalErrorsSettingAndThrowIfXMLErrorOccured ( ) { if ( $ this -> hasXMLErrorOccured ( ) ) { $ this -> resetXMLInternalErrorsSetting ( ) ; throw new XMLProcessingException ( $ this -> getLastXMLErrorMessage ( ) ) ; } $ this -> resetXMLInternalErrorsSetting ( ) ; }
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
Throws an XMLProcessingException if an error occured . It also always resets the libxml_use_internal_errors setting back to its initial value .