ASP.NET provides three main methods that allow us to trap
and respond to errors when they occur.
Page_Error of .aspx file or associated codebehind
Application_Error in Global.ascx file
CustomErrors section of the application configuration files
(Web.config)