public void AddErrorForSourceColumn(string columnName, Exception error, string type) { if (!SourceCellErrors.ContainsKey(columnName)) { SourceCellErrors[columnName] = new List <ContextError>(); } SourceCellErrors[columnName].Add(new ContextError() { Exception = error, Type = type }); }
public void AddErrorForSourceColumn(string columnName, string message, string type) { if (!SourceCellErrors.ContainsKey(columnName)) { SourceCellErrors[columnName] = new List <ContextError>(); } SourceCellErrors[columnName].Add(new ContextError() { Message = message, Type = type }); }