Top 10 Dotnet Exception Anti-Patterns in C#
- Exceptions should be reserved for the truly exceptional
- Exceptions should include all information needed to react to them
- Exceptions should only be caught where they can be appropriately responded to
- Do not catch Exception or force others to catch it by throwing Exception
- Exceptions add to your cognitive workload as a developer and slow down your application and should be avoided when possible
https://newdevsguide.com/2022/11/06/exception-anti-patterns-in-csharp/
#exception #errorhandling
Post #1989
176