Exemplo n.º 1
0
            public static void SendToast(Exception ex, Type source)
            {
                if (ex == null)
                {
                    throw new ArgumentNullException(nameof(ex));
                }
                var sourceString = source?.ToString() ?? "null";

#if DEBUG
                Debug.WriteLine(ex, "Exception");
#else
                JYAnalytics.TrackError($"Exception {ex.HResult:X8}: {ex.GetType().ToString()} at {sourceString}");
                HockeyClient.Current.TrackException(ex);
#endif
                SendToast(ex.GetMessage(), source);
            }