Exemplo n.º 1
0
Arquivo: Log.cs Projeto: 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
            }
        }