Esempio n. 1
0
        private static void HandleMonoDebuggerAttached(VCMonoDebuggerAttachedException e)
        {
            D.LogWarning(e.ErrorMessage);
            var dialog = CustomDialogs.CreateExceptionDialog("Mono Debugger Attached Bug", "When the Mono debugger is attached a conflict in calling command-line operations occur, so either detach Mono Debugger or turn off UVC", e);

            dialog.AddButton("Turn UVC Off", () => { VCSettings.VCEnabled = false; dialog.Close(); });
            dialog.ShowUtility();
        }
Esempio n. 2
0
        private static void HandleConnectionTimeOut(VCConnectionTimeoutException e)
        {
            D.LogWarning(e.ErrorMessage);
            var dialog = CustomDialogs.CreateExceptionDialog("Connection Timeout", "Connection to the server timed out", e);

            dialog.AddButton("Turn UVC Off", () => { VCSettings.VCEnabled = false; dialog.Close(); });
            dialog.ShowUtility();
        }
Esempio n. 3
0
        private static void HandleOutOfDate(VCOutOfDate e)
        {
            D.Log(e.ErrorMessage);
            var dialog = CustomDialogs.CreateExceptionDialog("Repository out of date", "The repository is out of date and you need to update first and then try again", e);

            dialog.AddButton("Update", () => { VCCommands.Instance.UpdateTask(); dialog.Close(); });
            dialog.ShowUtility();
        }
Esempio n. 4
0
        private static void HandleNewerVersion(VCNewerVersionException e)
        {
            D.Log(e.ErrorMessage);
            var dialog = CustomDialogs.CreateExceptionDialog("Newer Version", "There is a newer version of the file and need to update first and then try again", e);

            dialog.AddButton("Update", () => { VCCommands.Instance.UpdateTask(); dialog.Close(); });
            dialog.ShowUtility();
        }
Esempio n. 5
0
        private static void HandleCritical(VCCriticalException e)
        {
            Debug.LogException(e.InnerException != null ? e.InnerException : e);

            if (!string.IsNullOrEmpty(e.ErrorMessage))
            {
                GoogleAnalytics.LogUserEvent("CriticalException", e.ErrorMessage);
            }

            var dialog = CustomDialogs.CreateExceptionDialog("UVC Critical Exception", e);

            dialog.AddButton("Turn UVC Off", () => { VCSettings.VCEnabled = false; dialog.Close(); });
            dialog.ShowUtility();

            EditorUtility.ClearProgressBar();
        }
Esempio n. 6
0
        private static void HandleBase(VCException e)
        {
            Debug.LogException(e.InnerException != null ? e.InnerException : e);

            if (!string.IsNullOrEmpty(e.ErrorMessage))
            {
                GoogleAnalytics.LogUserEvent("Exception", e.ErrorMessage);
            }

            var dialog = CustomDialogs.CreateExceptionDialog("UVC Exception", e);

            if (VCSettings.BugReport)
            {
                dialog.AddButton("Report", () => ReportError(e));
            }
            dialog.ShowUtility();

            EditorUtility.ClearProgressBar();
        }