def list_subscriptions(self, topic_name):
try:<EOL><INDENT>subs = self.mgmt_client.list_subscriptions(topic_name)<EOL><DEDENT>except requests.exceptions.ConnectionError as e:<EOL><INDENT>raise ServiceBusConnectionError("<STR_LIT>".format(self.service_namespace), e)<EOL><DEDENT>except AzureServiceBusResourceNotFound:<EOL><INDENT>raise ServiceBusResourceNotFound("<STR_LIT>")<EOL><DEDENT>sub_clients = []<EOL>for sub in subs:<EOL><INDENT>sub_clients.append(SubscriptionClient.from_entity(<EOL>self._get_host(), topic_name, sub,<EOL>shared_access_key_name=self.shared_access_key_name,<EOL>shared_access_key_value=self.shared_access_key_value,<EOL>debug=self.debug))<EOL><DEDENT>return sub_clients<EOL>
Get a client for all subscription entities in the topic.

        :param topic_name: The topic to list subscriptions for.
        :type topic_name: str
        :rtype: list[~azure.servicebus.servicebus_client.SubscriptionClient]
        :raises: ~azure.servicebus.common.errors.ServiceBusConnectionError if the namespace is not found.
        :raises: ~azure.servicebus.common.errors.ServiceBusResourceNotFound if the topic is not found.

        Example:
            .. literalinclude:: ../examples/test_examples.py
                :start-after: [START list_subscriptions]
                :end-before: [END list_subscriptions]
                :language: python
                :dedent: 4
                :caption: List the subscriptions from Service Bus client