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

Allow for errors.As() to see the underlying AMQP error #329

Merged
merged 3 commits into from
Aug 20, 2024

Conversation

richardpark-msft
Copy link
Member

In the majority of common use cases, the LinkError, ConnError and SessionError will contain an amqp.Error. It's simpler, for callers, if they can simply check errors.As(&amqp.Error) so they can write general error handling, rather than having to check the envelope type each time.

…we typically want.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@richardpark-msft richardpark-msft merged commit 58e8fd8 into Azure:main Aug 20, 2024
5 checks passed
@richardpark-msft richardpark-msft deleted the amqp-unwrap branch August 20, 2024 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants