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

Remove checked exception from Response.close() and BinaryData.close() #44485

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lmolkova
Copy link
Member

@lmolkova lmolkova commented Mar 4, 2025

Everyone who uses Response needs to wrap closing it into try-catch, which is inconvenient.
It looks weird next to the client method calls that don't throw checked exceptions.

This change makes close throw unchecked io exception when necessary.

@azure-sdk
Copy link
Collaborator

azure-sdk commented Mar 4, 2025

API change check

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

io.clientcore:core
io.clientcore:annotation-processor

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