示例#1
0
 /// <summary>
 /// 构造方法
 /// </summary>
 /// <param name="basicReturn">基本返回</param>
 public BasicReturnException(BasicReturnInfo basicReturn)
     : this(basicReturn.Code, basicReturn.Msg, basicReturn.Desc)
 {
 }
示例#2
0
 /// <summary>
 /// 设置来自另外一个基本返回对象
 /// </summary>
 /// <param name="basicReturn">基本返回</param>
 public void FromBasic(BasicReturnInfo basicReturn) => SetCodeMsg(basicReturn.Code, basicReturn.Msg, basicReturn.Desc, basicReturn.Ex);