Notify() public static method

public static Notify ( Exception e ) : void
e Exception
return void
Esempio n. 1
0
    IEnumerator NotifyTwiceCoroutine()
    {
        Bugsnag.Notify(new System.Exception("Rollback failed"));
        yield return(new WaitForSeconds(1));

        Bugsnag.Notify(new ExecutionEngineException("Invalid runtime"));
    }
 public void OnNotifyClick()
 {
     Bugsnag.Context = "NotifyClocked";
     Debug.Log("Notify clicked");
     Bugsnag.Notify(new System.Exception("Notify clicked!"), "NotifyClacked");
     Bugsnag.Context = null;
 }
Esempio n. 3
0
 void LeaveComplexBreadcrumbAndNotify()
 {
     Bugsnag.LeaveBreadcrumb("Reload", BreadcrumbType.Navigation, new Dictionary <string, string>()
     {
         { "preload", "launch" }
     });
     Bugsnag.Notify(new System.Exception("Collective failure"));
 }
Esempio n. 4
0
 void DoNotifyWithCallback()
 {
     Bugsnag.Notify(new System.Exception("blorb"), report => {
         report.Exceptions[0].ErrorClass   = "FunnyBusiness";
         report.Exceptions[0].ErrorMessage = "cake";
         report.Metadata.Add("shape", new Dictionary <string, string>()
         {
             { "arc", "yes" },
         });
     });
 }
Esempio n. 5
0
    void RunResumedSession()
    {
        // send 1st exception which should include session info
        Bugsnag.StartSession();
        Bugsnag.Notify(new System.Exception("First Error"));

        // send 2nd exception after resuming a session
        Bugsnag.StopSession();
        Bugsnag.ResumeSession();
        Bugsnag.Notify(new System.Exception("Second Error"));
    }
 public void OnDivideByZeroClick()
 {
     Debug.Log("Divide By Zero clicked");
     try {
         int a = 0;
         int b = 1;
         int c = b / a;
     } catch (System.Exception e) {
         Bugsnag.Notify(e);
     }
 }
Esempio n. 7
0
    void RunNewSession()
    {
        // send 1st exception which should include session info
        Bugsnag.StartSession();
        Bugsnag.Notify(new System.Exception("First Error"));

        // stop tracking the existing session
        Bugsnag.StopSession();
        Bugsnag.StartSession();

        // send 2nd exception which should contain new session info
        Bugsnag.Notify(new System.Exception("Second Error"));
    }
Esempio n. 8
0
 void DoNotify()
 {
     Bugsnag.Notify(new System.Exception("blorb"));
 }
Esempio n. 9
0
 void LogLowLevelMessageAndNotify()
 {
     Debug.LogWarning("Failed to validate credentials");
     Bugsnag.Notify(new ExecutionEngineException("Invalid runtime"));
 }
Esempio n. 10
0
 void LeaveMessageBreadcrumbAndNotify()
 {
     Bugsnag.LeaveBreadcrumb("Initialize bumpers");
     Bugsnag.Notify(new System.Exception("Collective failure"));
 }
Esempio n. 11
0
 void DoNotifyWithSeverity()
 {
     Bugsnag.Notify(new System.Exception("blorb"), Severity.Info);
 }