Result Pattern

Previously I have always generated custom exceptions when I know that the state of the system will causes errors when running. Null checking method parameters at the start of a method being a simple example of this. I threw them up to be dealt with, or handled them in the catch locally. However recently I… Continue reading Result Pattern

Exception handling in Web API 2

REST Web APIs are becoming more and more popular and have seen a large uptake recently. One of the nicer features that is available in the .NET web API 2 toolkit is it’s inbuilt exception handling. This allows you to maintain separation on concerns and stops controllers becoming bloated beasts of burden, or logging. A… Continue reading Exception handling in Web API 2