Applicable on Asp.Net MVC5
HandleError Filter
This belongs to Exception Filters category (Authentication Filter, Authorization Filter, Action Filter, Result Filter & Exception Filter) . This is out of the box filter provided by .Net MVC team. We can develop our customized exception filter by extending the IException interface and overriding its method, the way other customized filters are created.
By default HandleError filter redirects to "Error" view placed in Views/Shared folder. This filter can be placed on controller level as well as on Action level. Whenever exception occurred this filter redirect to Error view (by default / custom view if specified in filter).
Developer can place the error details on Error view.
Scenario: In below situation there is some exception occurred (SQL connectivity / divide by zero / Null reference exception). In this case the system redirects to Error view showing the details of error.