A More Structured Approach to Exceptions
Exception management. Ah, the two words that can so easily send shivers up the backs of many developers. And they are what they are, right? Wrap things in a try/catch and go from there.
Well, Michael Feathers has just posted a blog entry on a slightly different approach to exceptions for those times where you want to be able to call a function and then handle any exceptions in a more structured way than just doing some inline processing (or swallowing them whole!).
Go have a look, it’s an interesting and simple approach and you could easily convert it to an extension method if you wanted to make your code just that little bit more intuitive.