Microsoft.CodeAnalysis.Sarif.Errors.LogExceptionCreatingLogFile C# (CSharp) Method

LogExceptionCreatingLogFile() public static method

public static LogExceptionCreatingLogFile ( IAnalysisContext context, string fileName, Exception exception ) : void
context IAnalysisContext
fileName string
exception System.Exception
return void
        public static void LogExceptionCreatingLogFile(IAnalysisContext context, string fileName, Exception exception)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            // Could not create output file: '{0}'
            context.Logger.LogConfigurationNotification(
                CreateNotification(
                    context.TargetUri,
                    ERR997_ExceptionCreatingLogFile,
                    NotificationLevel.Error,
                    exception,
                    false,
                    fileName));

            context.RuntimeErrors |= RuntimeConditions.ExceptionCreatingLogFile;
        }