Try to avoid swallowing exceptions in a Catch block. You may be tempted to wrap your
code in a Try/Catch block and then leave the entire Catch block empty. Although this certainly avoids exceptions showing up in the user interface, it makes debugging extremely difficult. Because you are no longer aware a problem occurs, you also cannot write code to prevent the error from happening in the first place. The general rule here is: Catch errors that you can handle successfully, for example by displaying a message to the user. If you can’t handle the exception in your code, let it bubble up and log it in the Application_Error event handler so you know that the exception occurred.