private List <string> CheckPathList(ReportGenre genre, IEnumerable <string> list) { var pathList = new PathList { PathStorage = PathStorageMode.Absolute }; try { pathList.AddRange(list); } catch (Exception e) { Report.Error(p => p.DescriptionReasonLocation(genre, $"Error in path to source file. {e.Message}", this.ProjectFilePath), e); } return(pathList.ToList()); }
public void DescriptionReasonLocation(ReportGenre reportGenre, string reason, string location) { this.AddReportGenre(reportGenre); this.AddReason(reason); this.AddLocation(location); }
private void AddReportGenre(ReportGenre reportGenre) { this.ReportGenre = reportGenre; }