public RezEmbelishedError(RezErrBase err, string extendedInfo) : base(err) { list.Add(extendedInfo); if (err is RezEmbelishedError emb) { list.AddRange(emb.list); } }
protected RezErrBase(RezErrBase errBase)// for EmbelishedError { if (errBase is null) { throw new ArgumentNullException(nameof(errBase)); } this.Exception = errBase.Exception; _value = errBase._value; }
private Result(RezErrBase errorBase) { Error = errorBase; _value = default(T) !; }
public static Result <T> Fail(RezErrBase rez) => new Result <T>(rez);