Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Generated from 91bb28bda57ea3c1098996d219975365b5499509
Use already existing error response object
  • Loading branch information
AutorestCI committed Nov 15, 2018
commit c98e6743d10edb889507dc28d7c11883d1a45e4c
6 changes: 0 additions & 6 deletions azure-mgmt-logic/azure/mgmt/logic/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,6 @@
from .response_py3 import Response
from .request_history_properties_py3 import RequestHistoryProperties
from .request_history_py3 import RequestHistory
from .api_error_body_py3 import ApiErrorBody
from .api_error_py3 import ApiError, ApiErrorException
except (SyntaxError, ImportError):
from .resource import Resource
from .sub_resource import SubResource
Expand Down Expand Up @@ -263,8 +261,6 @@
from .response import Response
from .request_history_properties import RequestHistoryProperties
from .request_history import RequestHistory
from .api_error_body import ApiErrorBody
from .api_error import ApiError, ApiErrorException
from .workflow_paged import WorkflowPaged
from .workflow_version_paged import WorkflowVersionPaged
from .workflow_trigger_paged import WorkflowTriggerPaged
Expand Down Expand Up @@ -444,8 +440,6 @@
'Response',
'RequestHistoryProperties',
'RequestHistory',
'ApiErrorBody',
'ApiError', 'ApiErrorException',
'WorkflowPaged',
'WorkflowVersionPaged',
'WorkflowTriggerPaged',
Expand Down
41 changes: 0 additions & 41 deletions azure-mgmt-logic/azure/mgmt/logic/models/api_error.py

This file was deleted.

43 changes: 0 additions & 43 deletions azure-mgmt-logic/azure/mgmt/logic/models/api_error_body.py

This file was deleted.

43 changes: 0 additions & 43 deletions azure-mgmt-logic/azure/mgmt/logic/models/api_error_body_py3.py

This file was deleted.

41 changes: 0 additions & 41 deletions azure-mgmt-logic/azure/mgmt/logic/models/api_error_py3.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def list(
:rtype:
~azure.mgmt.logic.models.RequestHistoryPaged[~azure.mgmt.logic.models.RequestHistory]
:raises:
:class:`ApiErrorException<azure.mgmt.logic.models.ApiErrorException>`
:class:`ErrorResponseException<azure.mgmt.logic.models.ErrorResponseException>`
"""
def internal_paging(next_link=None, raw=False):

Expand Down Expand Up @@ -99,7 +99,7 @@ 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.ApiErrorException(self._deserialize, response)
raise models.ErrorResponseException(self._deserialize, response)

return response

Expand Down Expand Up @@ -139,7 +139,7 @@ def get(
:rtype: ~azure.mgmt.logic.models.RequestHistory or
~msrest.pipeline.ClientRawResponse
:raises:
:class:`ApiErrorException<azure.mgmt.logic.models.ApiErrorException>`
:class:`ErrorResponseException<azure.mgmt.logic.models.ErrorResponseException>`
"""
# Construct URL
url = self.get.metadata['url']
Expand Down Expand Up @@ -173,7 +173,7 @@ def get(
response = self._client.send(request, stream=False, **operation_config)

if response.status_code not in [200]:
raise models.ApiErrorException(self._deserialize, response)
raise models.ErrorResponseException(self._deserialize, response)

deserialized = None

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def list(
:rtype:
~azure.mgmt.logic.models.RequestHistoryPaged[~azure.mgmt.logic.models.RequestHistory]
:raises:
:class:`ApiErrorException<azure.mgmt.logic.models.ApiErrorException>`
:class:`ErrorResponseException<azure.mgmt.logic.models.ErrorResponseException>`
"""
def internal_paging(next_link=None, raw=False):

Expand Down Expand Up @@ -96,7 +96,7 @@ 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.ApiErrorException(self._deserialize, response)
raise models.ErrorResponseException(self._deserialize, response)

return response

Expand Down Expand Up @@ -134,7 +134,7 @@ def get(
:rtype: ~azure.mgmt.logic.models.RequestHistory or
~msrest.pipeline.ClientRawResponse
:raises:
:class:`ApiErrorException<azure.mgmt.logic.models.ApiErrorException>`
:class:`ErrorResponseException<azure.mgmt.logic.models.ErrorResponseException>`
"""
# Construct URL
url = self.get.metadata['url']
Expand Down Expand Up @@ -167,7 +167,7 @@ def get(
response = self._client.send(request, stream=False, **operation_config)

if response.status_code not in [200]:
raise models.ApiErrorException(self._deserialize, response)
raise models.ErrorResponseException(self._deserialize, response)

deserialized = None

Expand Down