Application_Error handler in the Global.asax file is a method that will fire and catch all unhandled ASP.NET errors while processing a request.
Application_Error handler in the Global.asax file is a method that will fire and catch all unhandled ASP.NET errors while processing a request — in other words, all the errors that are not caught with a Try/Catch block or in a page-level error handler. In the example, the handler transfers control to a generic error page named GenericErrorPage.aspx, which interprets the error and displays an appropriate message.