diff --git a/azure-mgmt-logic/azure/mgmt/logic/operations/integration_account_sessions_operations.py b/azure-mgmt-logic/azure/mgmt/logic/operations/integration_account_sessions_operations.py index 9169be91fa09..1d3ac1334b33 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/operations/integration_account_sessions_operations.py +++ b/azure-mgmt-logic/azure/mgmt/logic/operations/integration_account_sessions_operations.py @@ -58,8 +58,7 @@ def list( :return: An iterator like instance of IntegrationAccountSession :rtype: ~azure.mgmt.logic.models.IntegrationAccountSessionPaged[~azure.mgmt.logic.models.IntegrationAccountSession] - :raises: - :class:`ErrorResponseException` + :raises: :class:`CloudError` """ def internal_paging(next_link=None, raw=False): @@ -100,7 +99,9 @@ def internal_paging(next_link=None, raw=False): response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp return response @@ -133,8 +134,7 @@ def get( :return: IntegrationAccountSession or ClientRawResponse if raw=true :rtype: ~azure.mgmt.logic.models.IntegrationAccountSession or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` + :raises: :class:`CloudError` """ # Construct URL url = self.get.metadata['url'] @@ -165,7 +165,9 @@ def get( response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp deserialized = None @@ -199,8 +201,7 @@ def create_or_update( :return: IntegrationAccountSession or ClientRawResponse if raw=true :rtype: ~azure.mgmt.logic.models.IntegrationAccountSession or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` + :raises: :class:`CloudError` """ # Construct URL url = self.create_or_update.metadata['url'] @@ -235,7 +236,9 @@ def create_or_update( response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 201]: - raise models.ErrorResponseException(self._deserialize, response) + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp deserialized = None