Exception handling is crucial part of every application. It is required for logging errors into database or text/log file, very importantly presenting them to the user in a nicely in case of exception. When I was working on application I encounter exceptions (e.g. 400, 500, etc ) but I was not sure of what might have caused it. That's where I started exploring various approaches of exception handling in ASP.NET MVC.
There are various ways to handle exceptions, based upon usability and error location/type (SQL, Application, etc)
We are going to see all of them -I will be keep on adding stuff to this article :)
It seems then, that this is a good exercise in understanding a number of things:
Exception Handling in ASP.NET MVC - At Page/View Level - Using Action Method
Exception Handling in ASP.NET MVC - At Application Level - Using Global.aspx
No comments:
Post a Comment