def list_topics(self):
try:<EOL><INDENT>topics = self.mgmt_client.list_topics()<EOL><DEDENT>except requests.exceptions.ConnectionError as e:<EOL><INDENT>raise ServiceBusConnectionError("<STR_LIT>".format(self.service_namespace), e)<EOL><DEDENT>topic_clients = []<EOL>for topic in topics:<EOL><INDENT>topic_clients.append(TopicClient.from_entity(<EOL>self._get_host(), topic,<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 topic_clients<EOL>
Get a client for all topic entities in the namespace.

        :rtype: list[~azure.servicebus.servicebus_client.TopicClient]
        :raises: ~azure.servicebus.common.errors.ServiceBusConnectionError if the namespace is not found.

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