Try Catch on Serialize
Better Relation Data
This commit is contained in:
@ -40,4 +40,10 @@ public class Aggregation
|
||||
[JsonSerializable(typeof(Aggregation))]
|
||||
internal partial class AggregationSourceGenerationContext : JsonSerializerContext
|
||||
{
|
||||
}
|
||||
|
||||
[JsonSourceGenerationOptions(WriteIndented = true)]
|
||||
[JsonSerializable(typeof(Aggregation[]))]
|
||||
internal partial class AggregationCollectionSourceGenerationContext : JsonSerializerContext
|
||||
{
|
||||
}
|
@ -262,7 +262,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
|
||||
@ -277,7 +280,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