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) { D.logError(new TextTreeRenderer( wrapWidth: wrapWidth, wrapWidthProperties: wrapWidth, maxDescendentsTruncatableNode: 5).render( details.toDiagnosticsNode(style: DiagnosticsTreeStyle.error)).TrimEnd(), details.exception); } D.logError($"Another exception was thrown: {details.summary}", details.exception); _errorCount += 1; }
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; }
public static void reportError(UIWidgetsErrorDetails details) { D.assert(details != null); D.assert(details.exception != null); if (onError != null) { onError(details); } }
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); }
public static void dumpErrorToConsole(UIWidgetsErrorDetails details) { dumpErrorToConsole(details, forceReport: false); }