Microsoft.VisualStudio.Project.IDEBuildLogger.GetFormattedErrorMessage C# (CSharp) Method

GetFormattedErrorMessage() private method

Format error messages for the task list
private GetFormattedErrorMessage ( string fileName, int line, int column, bool isWarning, string errorNumber, string errorText ) : string
fileName string
line int
column int
isWarning bool
errorNumber string
errorText string
return string
        private string GetFormattedErrorMessage(
            string fileName,
            int line,
            int column,
            bool isWarning,
            string errorNumber,
            string errorText)
        {
            string errorCode = isWarning ? this.WarningString : this.ErrorString;

            StringBuilder message = new StringBuilder();
            if (!string.IsNullOrEmpty(fileName))
            {
                message.AppendFormat(CultureInfo.CurrentCulture, "{0}({1},{2}):", fileName, line, column);
            }
            message.AppendFormat(CultureInfo.CurrentCulture, " {0} {1}: {2}", errorCode, errorNumber, errorText);
            message.AppendLine();

            return message.ToString();
        }