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)
900
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)
1110
CommandLineSwitchException
.Throw("SolutionBuildInvalidForCommandLineEvaluation",
1262
catch (
CommandLineSwitchException
e)
2714
CommandLineSwitchException
.VerifyThrow(
3100
CommandLineSwitchException
.Throw("InvalidTerminalLoggerValue", terminalLoggerArg);
3158
CommandLineSwitchException
.Throw("InvalidIsolateProjectsValue", parameter);
3189
CommandLineSwitchException
.Throw("InvalidGraphBuildValue", parameter);
3276
CommandLineSwitchException
.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message);
3280
CommandLineSwitchException
.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message);
3303
CommandLineSwitchException
.Throw("InvalidPreprocessPath", parameters[parameters.Length - 1], ex.Message);
3322
CommandLineSwitchException
.Throw("TargetsCouldNotBePrinted", parameters[parameters.Length - 1], ex.Message);
3385
CommandLineSwitchException
.Throw(resourceName, parameters[parameters.Length - 1], ex.Message);
3389
CommandLineSwitchException
.Throw(resourceName, parameters[parameters.Length - 1], ex.Message);
3428
CommandLineSwitchException
.Throw("InvalidProfilerValue", parameters[parameters.Length - 1],
3433
CommandLineSwitchException
.Throw("InvalidProfilerValue", parameters[parameters.Length - 1],
3438
CommandLineSwitchException
.Throw("InvalidProfilerValue", parameters[parameters.Length - 1],
3457
CommandLineSwitchException
.Throw("InvalidNodeNumberValue", value);
3552
CommandLineSwitchException
.Throw("InvalidNodeNumberValue", nodeMode.ToString());
3587
CommandLineSwitchException
.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message);
3591
CommandLineSwitchException
.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message);
3594
CommandLineSwitchException
.VerifyThrow(cpuCount > 0 && cpuCount <= 1024, "InvalidMaxCPUCountValueOutsideRange", parameters[parameters.Length - 1]);
3821
CommandLineSwitchException
.Throw("NameInvalid", nameof(XMakeElements.target), parameter, parameter[indexOfSpecialCharacter].ToString());
3869
CommandLineSwitchException
.VerifyThrow((parameterSections[0].Length > 0) && (parameterSections.Length == 2),
4381
CommandLineSwitchException
.Throw("InvalidVerbosityError", value);
4467
CommandLineSwitchException
.VerifyThrow(loggerSpec[0].Length > 0,
4504
CommandLineSwitchException
.VerifyThrow(loggerAssemblySpec.Length > 0,