RemexHtml/Tokenizer/Tokenizer.php
protected function error( $text, $pos = null ) {
		if ( !$this->ignoreErrors ) {
			if ( $pos === null ) {
				$pos = $this->pos;
			}
			$this->listener->error( $text, $pos );
		}
	}
protected function error( $text, $pos = null ) {
		if ( !$this->ignoreErrors ) {
			if ( $pos === null ) {
				$pos = $this->pos;
			}
			$this->listener->error( $text, $pos );
		}
	}
protected function error ( $ text , $ pos = null ) { if ( ! $ this -> ignoreErrors ) { if ( $ pos === null ) { $ pos = $ this -> pos ; } $ this -> listener -> error ( $ text , $ pos ) ; } }
Emit a parse error event.
@param string $text The error message
@param int|null $pos The error position, or null to use the current position
Emit a parse error event .