✅ Design of error handling for database calls (dapper, .net core)
Hello,
Writing an app that uses DB calls (from dapper) and wondering how most people like to see error handling for these.
Currently I have:
2 Replies
I don’t generally catch
Exception
other than at the top level because it tends to hide other problems, instead I catch specific exception types sometimes with additional pattern matching; but it’s an opinionated area, and nuanced to specific needs.Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.