SonarLint.VisualStudio.Progress.Controller.ProgressControllerHelper.FormatErrorMessage C# (CSharp) Method

FormatErrorMessage() static private method

Creates a string in the specified format. The format string should have only one placeholder.
static private FormatErrorMessage ( Exception ex, string messageErrorFormat, bool logWholeMessage ) : string
ex System.Exception The exception to use in the format placeholder
messageErrorFormat string The format to use
logWholeMessage bool Whether to use log the whole exception or just the message
return string
        internal static string FormatErrorMessage(Exception ex, string messageErrorFormat, bool logWholeMessage)
        {
            return string.Format(CultureInfo.CurrentCulture, messageErrorFormat, logWholeMessage ? ex.ToString() : ex.Message);
        }
        #endregion