Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide io.clientcore.core.http.exception migration recipes #44135

Open
jairmyree opened this issue Feb 10, 2025 · 0 comments
Open

Provide io.clientcore.core.http.exception migration recipes #44135

jairmyree opened this issue Feb 10, 2025 · 0 comments

Comments

@jairmyree
Copy link
Member

jairmyree commented Feb 10, 2025

This issue is for the discussion and tracking of tasks related to the migration to io.clientcore.core.http.exception using OpenRewrite recipes.

Module Changes

This list indicates a set of changes characterized by a translation of fully-qualified types.
(ex. com.azure.core.module-name to io.clientcore.module-name)

API Changes

This list indicates a set of changes characterized by a translation of functionality exposed via the public API.
(ex. client.setString(String value) -> client.setEnum(EnumType type))

  • Replace all caught core v1 exceptions with RuntimeException
  • Replace try/ catch on HttpRequestException with RuntimeException
  • Replace custom extension from HttpResponseException with clientcore variant
  • Replace core v1 exception extensions with RuntimeException
  • HttpResponseException.getResponse() will return Response<T> instead of HttpResponse<T>
@jairmyree jairmyree converted this from a draft issue Feb 10, 2025
@github-actions github-actions bot added the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Feb 10, 2025
@jairmyree jairmyree added clientcore OpenRewrite and removed needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. labels Feb 11, 2025
@jairmyree jairmyree changed the title Provide http.exception migration recipes Provide io.clientcore.core.http.exception migration recipes Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant