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

LogUnhandledEngineException() public static method

public static LogUnhandledEngineException ( IAnalysisContext context, Exception exception ) : RuntimeConditions
context IAnalysisContext
exception System.Exception
return RuntimeConditions
        public static RuntimeConditions LogUnhandledEngineException(IAnalysisContext context, Exception exception)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            // An unhandled exception was raised during analysis.
            context.Logger.LogToolNotification(
                CreateNotification(
                    context.TargetUri,
                    ERR999UnhandledEngineException,
                    NotificationLevel.Error,
                    exception,
                    true));

            return RuntimeConditions.ExceptionInEngine;
        }