Click here to Skip to main content
15,885,653 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i am maintaining Exceptional handling in these ways in my ASP.NET MVC 4 Application can any one give me the best ?



public class CustomHandleErrorAttribute : HandleErrorAttribute
{  
    public override void OnException(ExceptionContext filterContext)
    {
       //logging           

    }
}


VS

C#
public class Base_Controller : Controller
{
    protected override void OnException(ExceptionContext filterContext)
    {
        //Logging;

    }

}


and

C#
public class Base_Application : System.Web.HttpApplication
{
    protected void Application_Error(object sender, EventArgs e)
    {

        //Logging
    }
}


VS

Elmah
Posted
Comments
Richard C Bishop 27-Mar-13 10:19am    
Your handling is not Exceptional, exceptions are handled. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900