コード例 #1
0
        public static void dumpErrorToConsole(UIWidgetsErrorDetails details, bool forceReport = false)
        {
            D.assert(details != null);
            D.assert(details.exception != null);
            bool reportError = !details.silent;

            D.assert(() => {
                reportError = true;
                return(true);
            });
            if (!reportError && !forceReport)
            {
                return;
            }

            if (_errorCount == 0 || forceReport)
            {
                Debug.LogError(details.ToString());
            }
            else
            {
                Debug.LogWarning("Another exception was thrown: " + details);
            }

            _errorCount += 1;
        }
コード例 #2
0
ファイル: assertions.cs プロジェクト: JC-ut0/CubeGame
        public static void dumpErrorToConsole(UIWidgetsErrorDetails details, bool forceReport = false)
        {
            D.assert(details != null);
            D.assert(details.exception != null);
            bool reportError = !details.silent;

            D.assert(() => {
                reportError = true;
                return(true);
            });
            if (!reportError && !forceReport)
            {
                return;
            }

            D.logError(details.ToString(), details.exception);
        }