1 instantiation of CommandLineSwitchException
MSBuild (1)
CommandLine\CommandLineSwitchException.cs (1)
154
throw new
CommandLineSwitchException
(errorMessage, commandLineArg);
32 references to CommandLineSwitchException
MSBuild (32)
CommandLine\CommandLineSwitches.cs (1)
902
CommandLineSwitchException
.Throw("SwitchErrorWithArguments", _badCommandLineArg, ResourceUtilities.GetResourceString(_errorMessage), _commandLine, StringBuilderCache.GetStringAndRelease(sb));
FilteredBinlogReplay.cs (6)
80
CommandLineSwitchException
.VerifyThrow(
92
CommandLineSwitchException
.Throw("ReplayFilterInvalidOutput", parameter, ex.Message);
96
CommandLineSwitchException
.VerifyThrow(!File.Exists(outputPath) && !Directory.Exists(outputPath), "ReplayFilterOutputExists", outputPath);
110
CommandLineSwitchException
.VerifyThrow(
136
CommandLineSwitchException
.VerifyThrow(
174
CommandLineSwitchException
.VerifyThrow(outputPaths.Add(output.Path), "ReplayFilterOutputExists", output.Path);
XMake.cs (25)
1112
CommandLineSwitchException
.Throw("SolutionBuildInvalidForCommandLineEvaluation",
1265
catch (
CommandLineSwitchException
e)
2721
CommandLineSwitchException
.VerifyThrow(
3122
CommandLineSwitchException
.Throw("InvalidTerminalLoggerValue", terminalLoggerArg);
3180
CommandLineSwitchException
.Throw("InvalidIsolateProjectsValue", parameter);
3211
CommandLineSwitchException
.Throw("InvalidGraphBuildValue", parameter);
3298
CommandLineSwitchException
.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message);
3302
CommandLineSwitchException
.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message);
3325
CommandLineSwitchException
.Throw("InvalidPreprocessPath", parameters[parameters.Length - 1], ex.Message);
3344
CommandLineSwitchException
.Throw("TargetsCouldNotBePrinted", parameters[parameters.Length - 1], ex.Message);
3407
CommandLineSwitchException
.Throw(resourceName, parameters[parameters.Length - 1], ex.Message);
3411
CommandLineSwitchException
.Throw(resourceName, parameters[parameters.Length - 1], ex.Message);
3450
CommandLineSwitchException
.Throw("InvalidProfilerValue", parameters[parameters.Length - 1],
3455
CommandLineSwitchException
.Throw("InvalidProfilerValue", parameters[parameters.Length - 1],
3460
CommandLineSwitchException
.Throw("InvalidProfilerValue", parameters[parameters.Length - 1],
3479
CommandLineSwitchException
.Throw("InvalidNodeNumberValue", value);
3574
CommandLineSwitchException
.Throw("InvalidNodeNumberValue", nodeMode.ToString());
3609
CommandLineSwitchException
.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message);
3613
CommandLineSwitchException
.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message);
3616
CommandLineSwitchException
.VerifyThrow(cpuCount > 0 && cpuCount <= 1024, "InvalidMaxCPUCountValueOutsideRange", parameters[parameters.Length - 1]);
3843
CommandLineSwitchException
.Throw("NameInvalid", nameof(XMakeElements.target), parameter, parameter[indexOfSpecialCharacter].ToString());
3891
CommandLineSwitchException
.VerifyThrow((parameterSections[0].Length > 0) && (parameterSections.Length == 2),
4403
CommandLineSwitchException
.Throw("InvalidVerbosityError", value);
4489
CommandLineSwitchException
.VerifyThrow(loggerSpec[0].Length > 0,
4526
CommandLineSwitchException
.VerifyThrow(loggerAssemblySpec.Length > 0,