Пример #1
0
        static void PlatformTrackError(Exception exception, IDictionary <string, string> properties, ErrorAttachmentLog[] attachments)
        {
            ArrayList attachmentArray = null;

            if (attachments != null)
            {
                attachmentArray = new ArrayList();
                foreach (var attachment in attachments)
                {
                    if (attachment?.internalAttachment != null)
                    {
                        attachmentArray.Add(attachment.internalAttachment);
                    }
                    else
                    {
                        AppCenterLog.Warn(LogTag, "Skipping null ErrorAttachmentLog in Crashes.TrackError.");
                    }
                }
            }
            WrapperSdkExceptionManager.TrackException(GenerateModelException(exception, false), properties, attachmentArray);
        }
Пример #2
0
 static void PlatformTrackError(Exception exception, IDictionary <string, string> properties)
 {
     WrapperSdkExceptionManager.TrackException(GenerateModelException(exception, false), properties);
 }
 public override void TrackException(Exception exception)
 {
     WrapperSdkExceptionManager.TrackException(GenerateModelException(exception, false));
 }