private StockTradeObject GetLatestTradeObject(Stock.StockTrade stockTrade) { try { return stockTrade.GetTodayStockInfo(); //return stockTrade.GetStockInfoByDate(new DateTime(2014, 07, 18)); } catch (System.Net.WebException webEx) { stockTrade.UpdateUrl(); if (webEx.Status != System.Net.WebExceptionStatus.Timeout) { // NameResolutionFailure } // 尚未實作例外錯誤紀錄 ExceptionList.Add(Tuple.Create(DateTime.Now, webEx as Exception)); } catch (Exception ex) { // 尚未實作例外錯誤紀錄 ExceptionList.Add(Tuple.Create(DateTime.Now, ex)); } finally { LastGetStockInfoTime = DateTime.Now; } return null; }