private static void SetupErrorHandling() { ErrorReport.EmailAddress = "*****@*****.**".Replace("spam", "issues"); ErrorReport.AddStandardProperties(); ExceptionHandler.Init(); ExceptionHandler.AddDelegate((w, e) => DesktopAnalytics.Analytics.ReportException(e.Exception)); }
/// ------------------------------------------------------------------------------------ private static void SetUpErrorHandling() { Palaso.Reporting.ErrorReport.EmailAddress = "*****@*****.**"; Palaso.Reporting.ErrorReport.AddStandardProperties(); Palaso.Reporting.ExceptionHandler.Init(); ExceptionHandler.AddDelegate((w, e) => DesktopAnalytics.Analytics.ReportException(e.Exception)); }
private static void SetUpErrorHandling() { ErrorReport.SetErrorReporter(new WinFormsErrorReporter()); ErrorReport.EmailAddress = IssuesEmailAddress; ErrorReport.AddStandardProperties(); ExceptionHandler.Init(new WinFormsExceptionHandler()); ExceptionHandler.AddDelegate(ReportError); }
/// ------------------------------------------------------------------------------------ private static void SetUpErrorHandling() { if (ErrorReport.EmailAddress == null) { ExceptionHandler.Init(); ErrorReport.EmailAddress = IssuesEmailAddress; ErrorReport.AddStandardProperties(); ExceptionHandler.AddDelegate(ReportError); } }
/// ------------------------------------------------------------------------------------ private ProjectWindow() { Logger.WriteEvent("ProjectWindow constructor"); ExceptionHandler.AddDelegate(AudioUtils.HandleGlobalNAudioException); InitializeComponent(); _titleFmt = Text; _menuShowMPlayerDebugWindow.Tag = _menuProject.DropDownItems.IndexOf(_menuShowMPlayerDebugWindow); _menuProject.DropDownItems.Remove(_menuShowMPlayerDebugWindow); }
/// ------------------------------------------------------------------------------------ private static void SetUpErrorHandling() { Application.ApplicationExit += (sender, args) => ExternalProcess.CleanUpAllProcesses(); Application.ThreadException += (sender, args) => ExternalProcess.CleanUpAllProcesses(); AppDomain.CurrentDomain.UnhandledException += (sender, args) => ExternalProcess.CleanUpAllProcesses(); ErrorReport.EmailAddress = "*****@*****.**"; ErrorReport.AddStandardProperties(); ExceptionHandler.Init(); ExceptionHandler.AddDelegate((w, e) => Analytics.ReportException(e.Exception)); }