Quantcast
Viewing all articles
Browse latest Browse all 15

Improving Exception Handling

I came across a post from Clemens Vasters “Are you catching falling knives?“. The hearth of the article is when certain errors occur the best course of action it to reboot the process. For example, when memory becomes corrupted you can no longer trust any of the results. In this case, shutting down the working thread will keep the untrusted values out of your system.

The post has caused me to reflect upon the way that I am handling exceptions within code. I am thinking that now would be a good time to start improving my standard methodology. I think building a static helper method like the one shown in the post is step one. The next step is start researching best practices for exception handling.


Viewing all articles
Browse latest Browse all 15

Trending Articles