How can we do exception handling in MVC?
Answers
Answered by
4
In ASP.NET MVC we have a larger list of ways to handle exception such as:
Try-catch-finally.Overriding OnException method.Using the [HandleError] attribute on actions and controllers.Setting a global exception handling filter.Handling Application_Error event.Extending HandleErrorAttribute.
Try-catch-finally.Overriding OnException method.Using the [HandleError] attribute on actions and controllers.Setting a global exception handling filter.Handling Application_Error event.Extending HandleErrorAttribute.
Similar questions
English,
8 months ago
Science,
8 months ago
Math,
1 year ago
Science,
1 year ago
Social Sciences,
1 year ago