Best practices for exception handling within .NET
While understanding the best practices for exception handling / tracking / etc., in the .NET, I’ve ended up with the below information Best practices in Exception handling within .NET Before identifying the best practices, it is mandatory to identify the exception generation situations and handle them to the best need of the situation. The below is the best scenario for the exception handling. Fig 1: Exception Workflow [ Source : Internet, I forgot the source link, but I’ve copied this above diagram. As soon I find the source, would mention here. In case if the reader came across of the previous article, please let me know The above diagram is copied from Christian Thilmany ’s blog post from this link . ] There are two ways of handling these exceptions · Catch them & Act Immediately o Early o Late · Catch them to Record (or) log & Act aft...