Showing posts from May, 2017

Exception Handling in .Net

You can either catch exceptions at the lowest level of your execution stack possible, when you want to convert some exception from a 3rd party library into a Result instance, or you can catch them at the highest level possible to log the debug information and return the user some generic apology. Everything in between falls into the trap of using exceptions to control the program flow which has the effect similar to that of the goto statement.Original blog: