Example #1
0
        public void OnSettingsUI(UIHelperBase helper)
        {
            try
            {
                UIHelper group = helper.AddGroup(Name) as UIHelper;
                UIPanel  panel = group.self as UIPanel;

                sb_SuppressAllExceptions.Draw(group);

                group.AddSpace(10);

                group.AddButton("Clear list of suppressed exceptions", () =>
                {
                    ExceptionTemplate.ResetSuppressing();
                });

                group.AddSpace(10);

                group.AddButton("Open log folder", () =>
                {
                    Utils.OpenInFileBrowser(Application.dataPath);
                });
            }
            catch (Exception e)
            {
                Debug.Log("OnSettingsUI failed");
                Debug.LogException(e);
            }
        }
Example #2
0
        public static ExceptionTemplate RegisterException(Exception e)
        {
            ExceptionTemplate val;
            int hash = GetExceptionHash(e);

            if (!templates.TryGetValue(hash, out val))
            {
                val = new ExceptionTemplate(e);
                templates.Add(hash, val);
            }
            return(val);
        }