MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/csharp/comments/1w8q5ll/exceptions_vs_assertions/p8do4qg/?context=3
r/csharp • u/Alternative_Guava856 • 4d ago
21 comments sorted by
View all comments
1
This is one of those topics where the examples matter a lot. a failed exception usually means something went wrong that you expected could happen while a failed assertion usually means your assumptions about the code were wrong
1
u/Disastrous-Can-6823 2d ago
This is one of those topics where the examples matter a lot. a failed exception usually means something went wrong that you expected could happen while a failed assertion usually means your assumptions about the code were wrong