public List<Tweet> GetTweetsByKey(string KeyName, string KeyValue) { try { DBWrapper.DB _DB = new DBWrapper.DB(System.Configuration.ConfigurationManager.AppSettings.Get("DBServerName")); return _DB.GetTweetsByKey(KeyName, KeyValue); } catch { //Error can be handled here using Log4Net, Email notifications, returning error to user as a friendly string... etc. return null; } }