private XH_ValidDeclareType GetValidDeclareTypeByBreedClassValidIDFromWCF(int id) { try { using (SpotTradeRulesClient client = GetClient()) return(client.GetValidDeclareTypeByBreedClassValidID(id)); } catch (Exception ex) { string errCode = "GT-8120"; string errMsg = "无法根据涨跌幅类型编码从管理中心获取涨跌幅类型。"; throw new VTException(errCode, errMsg, ex); } }