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