From 8ec761d43627405821fae74b68e499f1ad104be4 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 19 Oct 2020 21:03:19 +0000 Subject: [PATCH] --- .../GenProcessClientNotifications.cs | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/source/bizobjects/AyaLib/GZTW.AyaNova.BLL/GenProcessClientNotifications.cs b/source/bizobjects/AyaLib/GZTW.AyaNova.BLL/GenProcessClientNotifications.cs index 826cc95..9e83f9e 100644 --- a/source/bizobjects/AyaLib/GZTW.AyaNova.BLL/GenProcessClientNotifications.cs +++ b/source/bizobjects/AyaLib/GZTW.AyaNova.BLL/GenProcessClientNotifications.cs @@ -181,9 +181,21 @@ namespace GZTW.AyaNova.BLL ClientNotifyEvent.DeleteItem(n.ID); } } - catch - { - } + catch(Exception ex) + { + //case 3829 + + //crack exception if necessary + while (ex.InnerException != null) ex = ex.InnerException; + //log and then continue + if(string.IsNullOrEmpty(NotifySummary)){ + NotifySummary="UNKNOWN MESSAGE"; + } + NotifyDeliveryLog.LogSMTPDeliveryMessage("ClientNotify Exception during delivery: Full error is:\r\n" + ex.Message + "\r\nMessage: "+ NotifySummary); + + continue; + } + }