-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Service Bus] Exception Handling review #11060
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
Merged
Merged
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
cb13bd8
Increment version
38e9f65
Update Development Status
aa30bc0
Merge branch 'master' of github.com:Azure/azure-sdk-for-python
c4710ea
Merge branch 'master' of github.com:Azure/azure-sdk-for-python
053f073
Merge branch 'master' of github.com:Azure/azure-sdk-for-python
f0697f7
Merge branch 'master' of github.com:Azure/azure-sdk-for-python
c83241a
Merge branch 'master' of github.com:Azure/azure-sdk-for-python
18c6fba
Merge branch 'master' of github.com:Azure/azure-sdk-for-python
607f134
Merge branch 'master' of github.com:Azure/azure-sdk-for-python
88fd7d1
Merge branch 'master' of github.com:Azure/azure-sdk-for-python
fcbaf65
Remove typing.Deque for Py3.5.3
f52e2d9
Merge branch 'master' of github.com:Azure/azure-sdk-for-python
8aaaf1e
Merge branch 'master' of github.com:Azure/azure-sdk-for-python
a12351c
Merge branch 'master' of github.com:Azure/azure-sdk-for-python
cc9dbb9
Merge branch 'master' of github.com:Azure/azure-sdk-for-python
932336a
Merge branch 'master' of github.com:Azure/azure-sdk-for-python
2742ca0
Merge branch 'master' of github.com:Azure/azure-sdk-for-python
72ab463
Merge branch 'master' of github.com:Azure/azure-sdk-for-python
213bb9d
Merge branch 'master' of github.com:Azure/azure-sdk-for-python
b312d19
Merge branch 'master' of github.com:Azure/azure-sdk-for-python
0638b9a
Merge branch 'master' of github.com:Azure/azure-sdk-for-python
c7bd430
Merge branch 'master' of github.com:Azure/azure-sdk-for-python
de47f42
Merge branch 'master' of github.com:Azure/azure-sdk-for-python
2fcc005
Merge branch 'master' of github.com:Azure/azure-sdk-for-python
cfa9d81
Merge branch 'master' of github.com:Azure/azure-sdk-for-python
ac224c1
Merge branch 'master' of github.com:Azure/azure-sdk-for-python
a2bad49
Fix class method super() call
a91692a
Exception hierarchy enhancement
a79d045
Remove exception type InvalidHandlerState
f8af228
Small fix
3d6e289
rename _is_live to _check_live
c0c2a0c
rename _can_run to _check_session
e6c28f8
update async sender
1305495
Merge branch 'master' of github.com:Azure/azure-sdk-for-python
8473965
Merge branch 'master' into sb_exp
ed7038c
Code Review Feedback
6230837
Small fix
f19019b
Small fix
cd82467
Add back _check_live to ServiceBusReceiver
94ef6b9
Fix __anext__ _check_live
cdae1a3
Add MessageContentTooLarge and MessageAlreadySettledError
2183d32
Merge branch 'master' of github.com:Azure/azure-sdk-for-python
5ebb499
Raise MessageContentTooLarge when uamqp raises MessageException with …
5fdef4c
Raise MessageContentTooLarge in client side validation
e233d8c
Merge branch 'master' of github.com:Azure/azure-sdk-for-python
abebb4e
Merge branch 'master' into sb_exp
b3ba4fa
Small fix
e5c91d4
Small fix
ff7776c
Revert to ValueError in create_batch
b409bb6
Update change log
467aa16
Fix test code
8116ed2
Import correct MessageContentTooLarge
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,10 @@ | |
| * Added method `get_topic_sender` in `ServiceBusClient` to get a `ServiceBusSender` for a topic. | ||
| * Added method `get_subscription_receiver` in `ServiceBusClient` to get a `ServiceBusReceiver` for a subscription under specific topic. | ||
| * `ServiceBusSender.send()` can now send a list of messages in one call, if they fit into a single batch. If they do not fit a `ValueError` is thrown. | ||
| * `BatchMessage.add()` and `ServiceBusSender.send()` raises `MessageContentTooLarge`, which is a subclass of `ValueError` if the content is over-sized. | ||
| * `ServiceBusReceiver.receive()` raises `ValueError` if the max_batch_size is greater than the prefetch of `ServiceBusClient`. | ||
| * Added exception classes `MessageError`, `MessageContentTooLarge`, `ServiceBusAuthenticationError`. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably add some description here?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Change log update will be in a separate PR. |
||
| * Removed exception class `InvalidHandlerState`. | ||
|
|
||
| **BugFixes** | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick:
I think we could add detail information -- is a subclass of
Valuein the next point so making this line:BatchMessage.add()andServiceBusSender.send()would raiseMessageContentTooLargeif the content is over-sized.