コード例 #1
0
        private static void OnUnhandledException(Exception e, bool terminating)
        {
            if (e != null)
            {
                try
                {
                    Bugs.Break("Unhandled exception " + e.ToString());
                    Fire(new UnhandledException(e));
                }
                catch (Exception ex)
                {
                    Bugs.LastResortEmergencyLog("while handling unhandled exception " + ex);
                }
            }

            if (terminating)
            {
                FireProcessExit();
            }
        }
コード例 #2
0
 public CodeBug(string aReason, Exception aInner = null)
     : base("Code BUG - please report: " + aReason, aInner)
 {
     Bugs.Break(Message);
 }
コード例 #3
0
 public CodeBug(Type aType, string aReason, Exception aInner = null)
     : base($"Code BUG in {aType.GetTitle()} - please report: {aReason}", aInner)
 {
     Bugs.Break(Message);
 }