Microsoft.CodeAnalysis.Sarif.Converters.CppCheckError.CppCheckError C# (CSharp) Method

CppCheckError() public method

Initializes a new instance of the CppCheckError class.
public CppCheckError ( string id, string message, string verboseMessage, string severity, ImmutableArray locations ) : System
id string The rule ID of the error generated by CppCheck.
message string The message of the error generated by CppCheck.
verboseMessage string The verbose message of the error generated by CppCheck.
severity string The severity of the error generated by CppCheck.
locations ImmutableArray The locations to which the error generated by CppCheck refer.
return System
        public CppCheckError(string id, string message, string verboseMessage, string severity, ImmutableArray<CppCheckLocation> locations)
        {
            if (locations.IsDefaultOrEmpty)
            {
                throw new ArgumentException(ConverterResources.CppCheckMissingLocation);
            }

            this.Id = id;
            this.Message = message;
            this.VerboseMessage = verboseMessage;
            this.Severity = severity;
            this.Locations = locations;
        }