Example #1
0
 private void processEPGFile(int dayNumber, string serviceID, BIOPFileMessage epgFile)
 {
     try
     {
         DateTime date = DateTime.Today + new TimeSpan(dayNumber - 1, 0, 0, 0);
         processDSMCCEPGFile(date, Int32.Parse(serviceID), epgFile.ContentData, Logger.ProtocolLogger);
     }
     catch (FormatException)
     {
         throw (new ArgumentOutOfRangeException("The DSMCC file could not be processed"));
     }
     catch (ArgumentException)
     {
         throw (new ArgumentOutOfRangeException("The DSMCC file could not be processed"));
     }
     catch (ArithmeticException)
     {
         throw (new ArgumentOutOfRangeException("The DSMCC file could not be processed"));
     }
 }
Example #2
0
 private void processEPGFile(string dateString, string serviceID, BIOPFileMessage epgFile)
 {
     try
     {
         DateTime date = DateTime.ParseExact(dateString, "yyyyMMdd", null);
         processDSMCCEPGFile(date, Int32.Parse(serviceID), epgFile.ContentData, Logger.ProtocolLogger);
     }
     catch (FormatException)
     {
         throw (new ArgumentOutOfRangeException("The DSMCC file could not be processed"));
     }
 }