Skip to content

[ServiceBus] Error Handling/Structure Improvement #10647

@yunhaoling

Description

@yunhaoling
  • in the case of error occurring in connection sharing

    • when to close connection?
    • when to close handler?
  • more fine-grained error triage

#9937 (comment)

Kieran's additions:

  • StopIteration with more precision/detail?
  • Better exception on composing batch wrongly (Empty batch)
  • ServiceBusConnectionError, can it be more precise when the SB doesn't exist?
  • ServiceBusError, can it be more precise for invalid credentials?
  • Readonly credentials on send, error should be something more precise than ServiceBusError (servicebusauthorizationerror?)
  • Passing a string directly to send; typeerror?
  • When calling receive() with a max_batch_size > prefetch, error talks about "link credit" which is not very useful to a user. Should wrap this error at the receive() level or something to that effect, mentioning the interplay of prefetch and guiding an actionable mitigation.

Metadata

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.Service Bus

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions