Skip to content

Azure.Core 2.0: Update RequestFailedException#42323

Closed
annelo-msft wants to merge 42 commits intoAzure:feature/azure.core-2.0from
annelo-msft:core2.0-exception
Closed

Azure.Core 2.0: Update RequestFailedException#42323
annelo-msft wants to merge 42 commits intoAzure:feature/azure.core-2.0from
annelo-msft:core2.0-exception

Conversation

@annelo-msft
Copy link
Member

Description

Many of the basic Azure.Core types now have analogous types in the System.ClientModel library. In order to follow the DRY engineering principle, we plan to update Azure.Core to reuse functionality from these types, using either inheritance or adapters in most cases.

This PR makes the following changes:

  • Azure.Core RequestFailedException inherits from System.ClientModel ClientRequestException

Design Motivation

Inheritance is required for this type to enable common exception handling.

Context

This PR is a smaller chunk of #41773 to make it easier to review. In addition, it this PR targets the feature/azure.core-2.0 feature branch because we cannot move the Azure.Core 2.0 integration into main until after System.ClientModel 1.1.0 is GA.

@annelo-msft annelo-msft changed the base branch from main to feature/azure.core-2.0 March 1, 2024 16:54
@azure-sdk
Copy link
Collaborator

API change check

APIView has identified API level changes in this PR and created following API reviews.

Azure.Core

@annelo-msft
Copy link
Member Author

Closing in favor of #42294

@annelo-msft annelo-msft closed this Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants