You can catch all your application errors in Global File on application error event.
If any error occured in application it will throgh the error on this event.you need not catach exception for each function
Something Like this :::
Protected Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
Dim ex As Exception = Server.GetLastError()
Server.ClearError()
If (Not ex Is DBNull.Value) Then
Dim logger As ILog = LogManager.GetLogger(GetType(Global.TopItems.Globalasax))
logger.Error(ex.Message, ex)
End If
If (TypeOf ex Is HttpRequestValidationException) Then
Response.Redirect("~/ErrorDisplay.aspx?ErrMsg=InvalidInput", True)
ElseIf (Not ex.InnerException Is Nothing) Then
If (ex.InnerException.Message.Contains("TCP error code")) Then
Response.Redirect("~/ErrorDisplay.aspx?ErrMsg=SERVICENOTAVILABLE", True)
End If
Else
Response.Redirect("~/ErrorDisplay.aspx", True)
End If
End Sub