Example #1
0
 public static void checkDelimiters(string filePath)
 {
     try
     {
         CensusAnalyserUtility.checkDelimiters(filePath);
     }
     catch (StateCensusAnalyserException e)
     {
         throw new StateCensusAnalyserException(e.Message, e.type);
     }
 }
Example #2
0
 public static void HeaderException(string filePath, string alternateFilePath)
 {
     try
     {
         CensusAnalyserUtility.HeaderException(filePath);
     }
     catch (StateCensusAnalyserException e)
     {
         throw new StateCensusAnalyserException(e.Message, e.type);
     }
 }
Example #3
0
 public static int GetRecords(string filePath)
 {
     try
     {
         int records = CensusAnalyserUtility.GetRecords(filePath);
         return(records);
     }
     catch (StateCensusAnalyserException e)
     {
         throw new StateCensusAnalyserException(e.Message, e.type);
     }
 }
 public static int GetStateCensusRecords(string filepath)
 {
     try
     {
         return(CensusAnalyserUtility.GetRecords(filepath));
     }
     catch (StateCensusAnalyserException)
     {
         throw new StateCensusAnalyserException("Enter correct directory path");
     }
     catch (FileNotFoundException)
     {
         throw new StateCensusAnalyserException("Enter correct directory path");
     }
 }