Import dotnetDBF for error handling.

This commit is contained in:
Patrick Fic
2022-02-11 15:06:05 -08:00
parent 991ad38839
commit f32c149bae
75 changed files with 5585 additions and 7 deletions

View File

@@ -1077,8 +1077,8 @@ namespace BodyshopPartner.Utils.Decoder
for (int i = 0; i < reader.RecordCount; i++)
{
var readValues = reader.NextRecord();
logger.Debug($"Reading line {i +1}");
var readValues = reader.NextRecord(false);
dynamic lin = new JObject();
//Mising est_seq
@@ -1165,7 +1165,12 @@ namespace BodyshopPartner.Utils.Decoder
}
catch (IOException ex)
{
logger.Trace(ex, "Unable to open LIN file. Retrying. ");
logger.Error(ex, "Unable to open LIN file. Retrying. ");
retryNumber++;
Thread.Sleep(retrySleep);
}catch(Exception Ex)
{
logger.Error(Ex, "Unable to open LIN file. Retrying. Unknown Exception ");
retryNumber++;
Thread.Sleep(retrySleep);
}