def list_queues(self):
try:<EOL><INDENT>queues = self.mgmt_client.list_queues()<EOL><DEDENT>except requests.exceptions.ConnectionError as e:<EOL><INDENT>raise ServiceBusConnectionError("<STR_LIT>".format(self.service_namespace), e)<EOL><DEDENT>queue_clients = []<EOL>for queue in queues:<EOL><INDENT>queue_clients.append(QueueClient.from_entity(<EOL>self._get_host(), queue,<EOL>shared_access_key_name=self.shared_access_key_name,<EOL>shared_access_key_value=self.shared_access_key_value,<EOL>mgmt_client=self.mgmt_client,<EOL>debug=self.debug))<EOL><DEDENT>return queue_clients<EOL>
Get clients for all queue entities in the namespace.

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

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