public HandelArrayException(MessageCode messageCode, IEnumerable ages) { foreach (var item in ages) { var exception = new HandelException(messageCode, item); _handelExceptions.Add(exception); } }
/// <summary> /// 添加异常 /// </summary> /// <param name="exceptions"></param> /// <returns></returns> public HandelArrayException Append(HandelException exceptions) { _handelExceptions.Add(exceptions); return(this); }