예제 #1
0
 private static void _OnUncaughtExceptionHandler(object sender, UnhandledExceptionEventArgs args)
 {
     if (args == null || args.get_ExceptionObject() == null)
     {
         return;
     }
     try
     {
         if (args.get_ExceptionObject().GetType() != typeof(Exception))
         {
             return;
         }
     }
     catch
     {
         if (Debug.isDebugBuild)
         {
             Debug.Log("BuglyAgent: Failed to report uncaught exception");
         }
         return;
     }
     if (!BuglyAgent.IsInitialized)
     {
         return;
     }
     if (BuglyAgent._uncaughtAutoReportOnce)
     {
         return;
     }
     BuglyAgent._HandleException((Exception)args.get_ExceptionObject(), null, true);
 }
예제 #2
0
    private static void UncaughtExceptionHandler(object sender, UnhandledExceptionEventArgs args)
    {
        Exception ex = (Exception)args.get_ExceptionObject();

        if (ex != null)
        {
            BugtraceAgent.HandleException(ex.get_Message(), ex.get_StackTrace());
        }
    }