Example #1
0
 static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
 {
     bugsnag.Notify(e.ExceptionObject as Exception, new
     {
         UserID = UserIDString
     });
 }
Example #2
0
 static void notifyBugsnag(Exception e)
 {
     try
     {
         bugsnag.Notify(e, new
         {
             UserID  = uid.ToString(),
             channel = Toggl.UpdateChannel()
         });
     }
     catch (Exception ex)
     {
         Console.WriteLine("Could not notify bugsnag: ", ex);
     }
 }
        void DisplayError(string errmsg, bool user_error)
        {
            if (InvokeRequired)
            {
                Invoke((MethodInvoker) delegate { DisplayError(errmsg, user_error); });
                return;
            }
            errorLabel.Text    = errmsg;
            troubleBox.Visible = true;

            if (!user_error)
            {
                Bugsnag.Library.BugSnag bs = new Bugsnag.Library.BugSnag();
                bs.Notify(new Exception(errmsg));
            }
        }
        void DisplayError(string errmsg, bool user_error)
        {
            if (InvokeRequired)
            {
                Invoke((MethodInvoker)delegate { DisplayError(errmsg, user_error); });
                return;
            }
            errorLabel.Text = errmsg;
            troubleBox.Visible = true;

            if (!user_error)
            {
                Bugsnag.Library.BugSnag bs = new Bugsnag.Library.BugSnag();
                bs.Notify(new Exception(errmsg));
            }
        }
        void OnError(string errmsg, bool user_error)
        {
            if (InvokeRequired)
            {
                Invoke((MethodInvoker)delegate { OnError(errmsg, user_error); });
                return;
            }

            isNetworkError = false;

            errorLabel.Text = errmsg;
            troubleBox.Visible = true;
            contentPanel.Location = errorContentPosition;

            if (!user_error && Properties.Settings.Default.Environment != "development")
            {
                Bugsnag.Library.BugSnag bs = new Bugsnag.Library.BugSnag();
                bs.Notify(new Exception(errmsg));
            }
        }
Example #6
0
 static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
 {
     Bugsnag.Library.BugSnag bs = new Bugsnag.Library.BugSnag();
     bs.Notify(e.Exception);
 }
Example #7
0
 static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
 {
     Bugsnag.Library.BugSnag bs = new Bugsnag.Library.BugSnag();
     bs.Notify(e.ExceptionObject as Exception);
 }