src/Microsoft.VisualStudio.ProjectSystem.Managed/ProjectSystem/Utilities/ProjectErrorUtilities.cs
/// <summary>
/// Throws an ProjectException with the specified message string if some condition is false.
/// </summary>
/// <param name="condition">The condition to evaluate.</param>
/// <param name="unformattedMessage">The text message to display.</param>
/// <param name="args">The formatting arguments.</param>
Throws an ProjectException with the specified message string if some condition is false.
Throws an ProjectException with the specified message string if some condition is false .
internal static void VerifyThrowProjectException(bool condition, string unformattedMessage, params object[] args)
        {
            if (!condition)
            {
                TraceUtilities.TraceError(unformattedMessage, args);
                throw new ProjectException(ResourceUtilities.FormatString(unformattedMessage, args));
            }
        }
internal static void VerifyThrowProjectException ( bool condition , string unformattedMessage , params object [ ] args ) { if ( ! condition ) { TraceUtilities . TraceError ( unformattedMessage , args ) ; throw new ProjectException ( ResourceUtilities . FormatString ( unformattedMessage , args ) ) ; } }
Throws an ProjectException with the specified message string if some condition is false.
Throws an ProjectException with the specified message string if some condition is false .
condition
bool
The condition to evaluate.
The condition to evaluate .
unformattedMessage
string
The text message to display.
The text message to display .
args
The formatting arguments.
The formatting arguments .