Beispiel #1
0
        internal static bool ReportNonFatalException(Exception exception, NonFatalExceptionHandler handler)
        {
            if (CrashIfFailFastEnabled(exception))
            {
                throw ExceptionUtilities.Unreachable;
            }

            // Ignore the return value, because we always want to continue after reporting the Exception.
            handler(exception, nameof(ExpressionEvaluatorFatalError));

            return(true);
        }
        internal static bool ReportNonFatalException(Exception exception, NonFatalExceptionHandler handler)
        {
            if (CrashIfFailFastEnabled(exception))
            {
                throw ExceptionUtilities.Unreachable;
            }

            // Ignore the return value, because we always want to continue after reporting the Exception.
            handler(exception, nameof(ExpressionEvaluatorFatalError));

            return true;
        }