I am using Azure's service bus with the web jobs SDK as described in this tutorial with the dead letter (poison) queue. Keeping it simple, I'm using POCO queue messages. When a message processing function fails enough times, the message is moved to the dead letter queue.
I have another webjob consuming the dead letter queue to notify the team that something went wrong.
Is there any way to obtain the exception/reason that the message was moved into the dead letter queue? For instance, if the POCO message failed serialization and was hence moved to the dead letter queue, what's the best way to find that out?
I would like to try to avoid manually handling errors, putting messages into the dead letter queue myself, etc. The webjobs SDK does all that admirably.