public string GetError(int errCode) { try { //如果改代码不存在,会引发异常 return Errors[errCode]; } catch (Exception) { return null; } } #endregion