Skip to content

Commit ad29b32

Browse files
authored
Merge pull request #199646 from KranthiPakala-MSFT/patch-136
(AzureCXP) fixed typo in catch block
2 parents 0cf10ce + 28cbd95 commit ad29b32

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)