This commit is contained in:
2022-09-10 22:01:48 +00:00
parent 56af1db7e7
commit 628364bcaa
8 changed files with 40 additions and 2 deletions

View File

@@ -100,6 +100,7 @@ namespace AyaNova.Biz
catch (Exception ex)
{
log.LogError(ex, $"Error processing customer notification event");
DbUtil.HandleIfDatabaseUnavailableTypeException(ex);
}
finally
{

View File

@@ -141,6 +141,7 @@ namespace AyaNova.Biz
catch (Exception ex)
{
log.LogError(ex, $"Error processing notification event");
DbUtil.HandleIfDatabaseUnavailableTypeException(ex);
}
finally
{

View File

@@ -56,7 +56,9 @@ namespace AyaNova.Biz
catch (Exception ex)
{
log.LogError(ex, $"Error processing PMGenerate ");
await NotifyEventHelper.AddGeneralNotifyEvent(NotifyEventType.PMGenerationFailed, "PM Generate failure","Preventive Maintenance", ex);
DbUtil.HandleIfDatabaseUnavailableTypeException(ex);
await NotifyEventHelper.AddGeneralNotifyEvent(NotifyEventType.PMGenerationFailed, "PM Generate failure", "Preventive Maintenance", ex);
}
finally
{

View File

@@ -58,6 +58,7 @@ namespace AyaNova.Biz
catch (Exception ex)
{
log.LogError(ex, $"Error processing CoreJobPMInventoryCheck ");
DbUtil.HandleIfDatabaseUnavailableTypeException(ex);
await NotifyEventHelper.AddGeneralNotifyEvent(NotifyEventType.PMGenerationFailed, "PM Inventory check failure", "Preventive Maintenance", ex);
}
finally