Tech
What I Learned About Exceptions in C#: Understanding Errors Instead of Hiding Them
When I started learning C#, I thought exceptions were mainly about one thing:
Put the code inside try , catch the exception, and the problem is solved.
But as I worked more with .NET and started building APIs, I realized that handling an exception is not the same as hiding it .
This article is about what I learned while trying to understand exceptions in C# and how my way of thinking about errors changed.
What is an Exception?
An exception is an unexpected situa...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to