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