title: Exception Handler with isFatal flag
body: <p>I want to write an Exception handler in my C# app for both handled and unhandled exceptions. For the handled ones though, I want to be able to specify if the application should shutdown or continue (eg, if database connections are not working, then no point continuing right...). I have observed that the Exception class has something called "Data" (a dictionary) to pass messages, but I am not very convinced that it is where we should specify the flag to shut down the app. I am more leaning towards creating a Custom Exception class with a Boolean property. Data can be used for some custom messages about the exception but does not seem to be a place for communication within the application. I am curious to know if my understanding is right and that is the general way of handling exceptions or is there a better way.</p>