public string ExtractYear(string birth, FileInfo file) { try { string year = YearHelper(file.Name); if (year != null) return year; else return IssueError("Can't parse year", file); } catch (Exception e) { DirectoryHandler.LogError(e.Message + "\n" + e.StackTrace); return IssueError("Can't parse year", file); } }