示例#1
0
文件: Log.cs 项目: lee1431/uno
        public void FatalError(Source src, object code, string msg)
        {
            var str = code?.ToString() ?? "E0000";

            Report(src, str, msg, ConsoleColor.Red, true);

            lock (Errors)
            {
                ErrorCount++;
                Errors.AddFatalError(src, str, msg);
                // This method is used when an unexpected exception is caught,
                // and should not throw a new MaxErrorCountException
            }
        }