private function getOutOfBoundsException($position = null)
    {
        return new OutOfBoundsException(
            sprintf('Invalid token position (%d)', $position !== null ? $position : $this->position)
        );
    }
private function getOutOfBoundsException($position = null)
    {
        return new OutOfBoundsException(
            sprintf('Invalid token position (%d)', $position !== null ? $position : $this->position)
        );
    }
private function getOutOfBoundsException ( $ position = null ) { return new OutOfBoundsException ( sprintf ( 'Invalid token position (%d)' , $ position !== null ? $ position : $ this -> position ) ) ; }
Returns OutOfBoundsException based on current position within the iterator.

@param int|null $position

@return \HippoPHP\Tokenizer\Exception\OutOfBoundsException
Returns OutOfBoundsException based on current position within the iterator .