Skip to content

Commit 28cbd95

Browse files
(AzureCXP) fixed typo in catch block
Fixed typo to resolve MicrosoftDocs/azure-docs/issues/93570
1 parent 4af947d commit 28cbd95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/event-hubs/exceptions-dotnet.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ try
3939
{
4040
// Read events using the consumer client
4141
}
42-
catch (EventHubsException ex) where
42+
catch (EventHubsException ex) when
4343
(ex.Reason == EventHubsException.FailureReason.ConsumerDisconnected)
4444
{
4545
// Take action based on a consumer being disconnected
4646
}
4747
```
4848

4949
## Next steps
50-
There are other exceptions that are documented in the [legacy article](event-hubs-messaging-exceptions.md). Some of them apply only to the legacy Event Hubs .NET client library.
50+
There are other exceptions that are documented in the [legacy article](event-hubs-messaging-exceptions.md). Some of them apply only to the legacy Event Hubs .NET client library.

0 commit comments

Comments
 (0)