public Result(IAmError error) { if (!result.Equals(default(TResult))) { throw new InvalidOperationException( "Result already set"); } this.error = error; }
public IAddErrorsOrFinalize <T> AddingError(IAmError error) { this._envelope.Errors.Add(error); return((IAddErrorsOrFinalize <T>) this); }