private function getOutOfBoundsException($position = null)
    {
        return new OutOfBoundsException(
            sprintf('Invalid token position (%d)', $position !== null ? $position : $this->position)
        );
    }