[Event Hubs] Include inner exception output for EventHubsException.ToString() #33009
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Event Hubs
feature-request
This issue requires a new behavior in the product in order be resolved.
good first issue
This issue tracks work that may be a good starting point for a first-time contributor
help wanted
This issue is tracking work for which community contributions would be welcomed and appreciated
Milestone
Library name and version
Azure.Messaging.EventHubs.Processor 5.7.5
Describe the bug
Azure.Messaging.EventHubs EventHubsException.ToString() overrides the default System.Exception.ToString() and does not outputs the InnerException details.
Expected behavior
To output the InnerException details.
Actual behavior
Only this is output, and no InnerException detail.
Azure.Messaging.EventHubs.EventHubsException(GeneralError): An error was encountered while executing developer-provided code to process events. On most hosts, this will fault the task responsible for partition processing, causing it to be restarted from the last checkpoint. On some hosts, it may crash the process. It is very strongly advised that all developer-provided code include a try/catch wrapper and ensure that no exceptions are allowed to propagate up the stack. Exception details can be found in the inner exception. (vdqgadeviothub). For troubleshooting information, see https://aka.ms/azsdk/net/eventhubs/exceptions/troubleshoot
Reproduction Steps
Throw a Azure.Messaging.EventHubs EventHubsException with an InnerException
Environment
.NET 6.0
The text was updated successfully, but these errors were encountered: