Try Catch on Serialize
Better Relation Data
This commit is contained in:
		| @ -137,7 +137,10 @@ public class FileRead : Shared.FileRead, IFileRead | ||||
|             string subject = string.Concat("Exception:", _CellInstanceConnectionName); | ||||
|             string body = string.Concat(exception.Message, Environment.NewLine, Environment.NewLine, exception.StackTrace); | ||||
|             try | ||||
|             { _SMTP.SendHighPriorityEmailMessage(subject, body); } | ||||
|             { | ||||
|                 _SMTP.SendHighPriorityEmailMessage(subject, body);  | ||||
|                 File.WriteAllText(".email", body); | ||||
|             } | ||||
|             catch (Exception) { } | ||||
|             File.AppendAllLines(traceDummyFile, new string[] { site, monARessource, stateName, State.Critical.ToString(), exception.Message, exception.StackTrace }); | ||||
|             _ = monIn.SendStatus(site, monARessource, stateName, State.Critical); | ||||
| @ -265,7 +268,10 @@ public class FileRead : Shared.FileRead, IFileRead | ||||
|             string subject = string.Concat("Exception:", _CellInstanceConnectionName); | ||||
|             string body = string.Concat(exception.Message, Environment.NewLine, Environment.NewLine, exception.StackTrace); | ||||
|             try | ||||
|             { _SMTP.SendHighPriorityEmailMessage(subject, body); } | ||||
|             { | ||||
|                 _SMTP.SendHighPriorityEmailMessage(subject, body);  | ||||
|                 File.WriteAllText(".email", body); | ||||
|             } | ||||
|             catch (Exception) { } | ||||
|         } | ||||
|         try | ||||
| @ -278,7 +284,10 @@ public class FileRead : Shared.FileRead, IFileRead | ||||
|             string subject = string.Concat("Exception:", _CellInstanceConnectionName); | ||||
|             string body = string.Concat(exception.Message, Environment.NewLine, Environment.NewLine, exception.StackTrace); | ||||
|             try | ||||
|             { _SMTP.SendHighPriorityEmailMessage(subject, body); } | ||||
|             { | ||||
|                 _SMTP.SendHighPriorityEmailMessage(subject, body);  | ||||
|                 File.WriteAllText(".email", body); | ||||
|             } | ||||
|             catch (Exception) { } | ||||
|         } | ||||
|     } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user