Beispiel #1
0
 private static void SetUpErrorHandling()
 {
     ErrorReport.SetErrorReporter(new WinFormsErrorReporter());
     ErrorReport.EmailAddress = "*****@*****.**";
     ErrorReport.AddStandardProperties();
     ExceptionHandler.Init(new WinFormsExceptionHandler());
 }
Beispiel #2
0
 private static void SetupErrorHandling()
 {
     ErrorReport.EmailAddress = "*****@*****.**".Replace("spam", "issues");
     ErrorReport.AddStandardProperties();
     ExceptionHandler.Init();
     ExceptionHandler.AddDelegate((w, e) => DesktopAnalytics.Analytics.ReportException(e.Exception));
 }
Beispiel #3
0
 private static void SetupErrorHandling()
 {
     Logger.Init();
     ErrorReport.EmailAddress = "*****@*****.**";            //TODO Change this address
     ErrorReport.AddStandardProperties();
     ExceptionHandler.Init();
 }
Beispiel #4
0
 private static void SetUpErrorHandling()
 {
     ErrorReport.SetErrorReporter(new WinFormsErrorReporter());
     ErrorReport.EmailAddress = IssuesEmailAddress;
     ErrorReport.AddStandardProperties();
     ExceptionHandler.Init(new WinFormsExceptionHandler());
     ExceptionHandler.AddDelegate(ReportError);
 }
 private void InitializeErrorHandling()
 {
     ErrorReport.SetErrorReporter(new WinFormsErrorReporter());
     ErrorReport.EmailAddress = "*****@*****.**";
     ErrorReport.AddStandardProperties();
     ErrorReport.AddProperty("Host Application", host.ApplicationName + " " + host.ApplicationVersion);
     ExceptionHandler.Init(new WinFormsExceptionHandler());
 }
        public void Properties_ContainDesktopEnvironment()
        {
            // SUT
            ErrorReport.AddStandardProperties();

            // Verify
            // (ErrorReport.Properties is a string dictionary which converts all keys to lowercase)
            Assert.That(ErrorReport.Properties.Keys, Has.Member("DesktopEnvironment"));
        }
        public static void Main(string[] rgArgs)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            ErrorReport.AddProperty("EmailAddress", "*****@*****.**");
            ErrorReport.AddStandardProperties();
            ExceptionHandler.Init();

            s_loadingWnd = new SmallFadingWnd(Properties.Resources.kstidLoadingProgramMsg);

            PortableSettingsProvider.SettingsFileFolder = App.ProjectFolder;
            PortableSettingsProvider.SettingsFileName   = "PCIEditor.settings";

            string inventoryFilePath =
                FileLocator.GetDirectoryDistributedWithApplication(App.ConfigFolderName);

            // This is the poor man's way of determining whether or not the user has
            // write access to the folder in which the phonetic inventory
            // is stored. I'm sure there is a great class in .Net to use for such a
            // thing, but I couldn't find it in the little bit of digging I did. Sigh!
            string tmpFile = Path.Combine(inventoryFilePath, "!~tmpaccesstest~!");

            try
            {
                File.WriteAllText(tmpFile, string.Empty);
            }
            catch
            {
                string msg = string.Format(Properties.Resources.kstidWriteAccessErrorMsg, inventoryFilePath);
                Utils.MsgBox(msg);
                return;
            }

            File.Delete(tmpFile);

            string inventoryPath = null;

            try
            {
                // Make sure the phonetic inventory file exists.
                inventoryPath = FileLocator.GetFileDistributedWithApplication(App.ConfigFolderName,
                                                                              App.kDefaultInventoryFileName);
            }
            catch
            {
                string filePath = Utils.PrepFilePathForMsgBox(inventoryPath);
                string msg      = string.Format(Properties.Resources.kstidInventoryFileMissing, filePath);
                Utils.MsgBox(msg);
                return;
            }

            var editor = new PCIEditor();

            editor.OpenFile(inventoryPath);
            Application.Run(editor);
        }
Beispiel #8
0
 private static void SetupErrorHandling()
 {
     Logger.Init();
     ErrorReport.EmailAddress = "*****@*****.**";
     ErrorReport.AddStandardProperties();
     ExceptionHandler.Init();
     UsageReporter.Init(Properties.Settings.Default.ReportingSettings, "nowhere.palaso.org", "bogusAccountCode", true);
     Settings.Default.Save();
 }
Beispiel #9
0
 private static void SetUpErrorHandling()
 {
     using (new HotSpotProvider())
     {
         ErrorReport.EmailAddress = "*****@*****.**";
         ErrorReport.AddStandardProperties();
         ExceptionHandler.Init();
     }
 }
Beispiel #10
0
 private static void SetupErrorHandling()
 {
     ErrorReport.EmailAddress = "*****@*****.**";
     if (BasilProject.IsInitialized)
     {
         ErrorReport.AddProperty("ProjectPath", BasilProject.Project.ProjectDirectoryPath);
     }
     ErrorReport.AddStandardProperties();
     ExceptionHandler.Init();
 }
Beispiel #11
0
 /// ------------------------------------------------------------------------------------
 private static void SetUpErrorHandling()
 {
     if (ErrorReport.EmailAddress == null)
     {
         ExceptionHandler.Init();
         ErrorReport.EmailAddress = IssuesEmailAddress;
         ErrorReport.AddStandardProperties();
         ExceptionHandler.AddDelegate(ReportError);
     }
 }
Beispiel #12
0
 private static void SetupErrorHandling()
 {
     ErrorReport.EmailAddress = "*****@*****.**";
     ErrorReport.AddProperty("Application", "ChorusHub");
     ErrorReport.AddProperty("Directory", ChorusHubOptions.RootDirectory);
     ErrorReport.AddProperty("AdvertisingPort", ChorusHubOptions.AdvertisingPort.ToString());
     ErrorReport.AddProperty("MercurialPort", ChorusHubOptions.MercurialPort.ToString());
     ErrorReport.AddStandardProperties();
     ExceptionHandler.Init();
 }
Beispiel #13
0
        /// ------------------------------------------------------------------------------------
        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));
        }
Beispiel #14
0
        static void Main()
        {
            try
            {
                Application.SetCompatibleTextRenderingDefault(false);
            }
            catch
            {
                // The compatible rendering system may default to false anyway.
            }
            ErrorReport.EmailAddress = "*****@*****.**";
            ErrorReport.AddStandardProperties();
            ExceptionHandler.Init();

            Application.EnableVisualStyles();
            Application.Run(new PaMainWnd(true));
        }
Beispiel #15
0
        private void InitializeErrorHandling(string projectName)
        {
            ErrorReport.SetErrorReporter(new WinFormsErrorReporter());
            ErrorReport.EmailAddress = "*****@*****.**";
            ErrorReport.AddStandardProperties();
            // The version that gets added to the report by default is for the entry assembly, which is
            // AddInProcess32.exe. Even if if reported a version (which it doesn't), it wouldn't be very
            // useful.
            ErrorReport.AddProperty("Plugin Name", pluginName);
            Assembly assembly = Assembly.GetExecutingAssembly();

            ErrorReport.AddProperty("Version", string.Format("{0} (apparent build date: {1})",
                                                             assembly.GetName().Version,
                                                             File.GetLastWriteTime(assembly.Location).ToShortDateString()));
            ErrorReport.AddProperty("Host Application", host.ApplicationName + " " + host.ApplicationVersion);
            ErrorReport.AddProperty("Project Name", projectName);
            ExceptionHandler.Init(new WinFormsExceptionHandler());
        }
Beispiel #16
0
        private static void SetUpErrorHandling()
        {
            ErrorReport.EmailAddress = "*****@*****.**";
            ErrorReport.AddStandardProperties();
#if LINUX
            if (Platform.IsUnix && Environment.GetEnvironmentVariable("DISPLAY") == null)
            {
                ExceptionHandler.Init(new SyslogExceptionHandler("FixFwData"));
            }
            else
#endif
            ExceptionHandler.Init();
#if LINUX
            if (Platform.IsUnix)
            {
                logger = new SyslogLogger("FixFwData");
            }
#endif
        }
Beispiel #17
0
 private static void SetupErrorHandling()
 {
     ErrorReport.EmailAddress = "*****@*****.**";
     ErrorReport.AddStandardProperties();
     ExceptionHandler.Init();
 }
Beispiel #18
0
 private static void SetUpErrorHandling()
 {
     ErrorReport.EmailAddress = Utilities.FlexBridgeEmailAddress;
     ErrorReport.AddStandardProperties();
     ExceptionHandler.Init();
 }
Beispiel #19
0
 private static void SetUpErrorHandling()
 {
     ErrorReport.EmailAddress = "*****@*****.**".Replace("hide", "hattonjohn");
     ErrorReport.AddStandardProperties();
     ExceptionHandler.Init();
 }