Add your method like below
protected void Application_Error(object sender, EventArgs e)
{
Response.Write("<error message...");
}
I recommend you to follow the exception handling explain in the below link
Exception Handling in MVC[
^]
Hope this helps