Skip to content

[Service Bus] Skip unnecessary error in fromAmqpMessage#2824

Merged
ramya-rao-a merged 1 commit into
Azure:masterfrom
ramya-rao-a:from-amqp-message
May 11, 2019
Merged

[Service Bus] Skip unnecessary error in fromAmqpMessage#2824
ramya-rao-a merged 1 commit into
Azure:masterfrom
ramya-rao-a:from-amqp-message

Conversation

@ramya-rao-a
Copy link
Copy Markdown
Contributor

@ramya-rao-a ramya-rao-a commented May 11, 2019

Offshoot from #2761

fromAmqpMessage is an helper method used by the library to convert a message received over an AMQP link to a type that we want to expose to our users

  • When a message is received over AMQP receiver link, for eg: receiveMessages or registerMessageHandler
  • When a message is received over the $management link, for eg: peek or receiveDeferredMessages

We currently throw an error when the input parameter to this helper method is not provided.

While these kind of parameter validations are helpful for user facing apis to validate user input, this particular check and error is an overkill for an internal function.

This PR removes the error being thrown and replaces it with an empty message.

This work is being done as part of #2658 where we are removing the errors that are not actionable by the user.

@ramya-rao-a ramya-rao-a merged commit 525624c into Azure:master May 11, 2019
@ramya-rao-a ramya-rao-a deleted the from-amqp-message branch May 11, 2019 16:25
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.

2 participants