Notify() public static method

public static Notify ( Exception e ) : void
e Exception
return void
Exemplo 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;
 }
Exemplo n.º 3
0
 void LeaveComplexBreadcrumbAndNotify()
 {
     Bugsnag.LeaveBreadcrumb("Reload", BreadcrumbType.Navigation, new Dictionary <string, string>()
     {
         { "preload", "launch" }
     });
     Bugsnag.Notify(new System.Exception("Collective failure"));
 }
Exemplo 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" },
         });
     });
 }
Exemplo 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);
     }
 }
Exemplo 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"));
    }
Exemplo n.º 8
0
 void DoNotify()
 {
     Bugsnag.Notify(new System.Exception("blorb"));
 }
Exemplo n.º 9
0
 void LogLowLevelMessageAndNotify()
 {
     Debug.LogWarning("Failed to validate credentials");
     Bugsnag.Notify(new ExecutionEngineException("Invalid runtime"));
 }
Exemplo n.º 10
0
 void LeaveMessageBreadcrumbAndNotify()
 {
     Bugsnag.LeaveBreadcrumb("Initialize bumpers");
     Bugsnag.Notify(new System.Exception("Collective failure"));
 }
Exemplo n.º 11
0
 void DoNotifyWithSeverity()
 {
     Bugsnag.Notify(new System.Exception("blorb"), Severity.Info);
 }