[ServiceBus] Connection error with unknown condition code to be ServiceBusConnectionError instead of ServiceBusError #15688
Labels
blocking-release
Blocks release
Client
This issue points to a problem in the data-plane of the library.
Service Bus
Milestone
Right now, if there's a connection error happening with condition unknown, a ServiceBusError is throwed due to the current condition based exception handling -- condition code b"amqp:unknown-error" is not in the condition-error mapping and default to ServiceBusError.
However, I think this could be improved by raising ServiceBusConnectionError if the error condition is unknown to be more detailed.
This is a non-breaking change.
To be more specific, it's this part of the code that should be improved:
azure-sdk-for-python/sdk/servicebus/azure-servicebus/azure/servicebus/exceptions.py
Lines 83 to 108 in 21e154b
The text was updated successfully, but these errors were encountered: