I have a function that returns a Boolean.  I am hoping to implement the health monitor service.  If I throw a new application exception then I want it of course to go to the error page and log the error in my database in the web events folder.  When I use the below code, I have a 'warning' on the return false in the catch(). I know this code is unreachable, but can I even get that warning to go away or is there a better way to do this?

public bool AddUsernameAndEmailToTempTable(UserDataTempDTO param) { try { // Add Code to Temp Table in my database via LINQ return true; } catch { string error = string.Format("Error in function: AddUsernameAndEmailToTempTable() Username: {0} | Email Address: {1}", param.UserNm, par ...

Go to the complete details ...