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)
1064
CommandLineSwitchException
.Throw("SolutionBuildInvalidForCommandLineEvaluation",
1216
catch (
CommandLineSwitchException
e)
2656
CommandLineSwitchException
.VerifyThrow(
3042
CommandLineSwitchException
.Throw("InvalidTerminalLoggerValue", terminalLoggerArg);
3133
CommandLineSwitchException
.Throw("InvalidIsolateProjectsValue", parameter);
3164
CommandLineSwitchException
.Throw("InvalidGraphBuildValue", parameter);
3251
CommandLineSwitchException
.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message);
3255
CommandLineSwitchException
.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message);
3278
CommandLineSwitchException
.Throw("InvalidPreprocessPath", parameters[parameters.Length - 1], ex.Message);
3297
CommandLineSwitchException
.Throw("TargetsCouldNotBePrinted", parameters[parameters.Length - 1], ex.Message);
3360
CommandLineSwitchException
.Throw(resourceName, parameters[parameters.Length - 1], ex.Message);
3364
CommandLineSwitchException
.Throw(resourceName, parameters[parameters.Length - 1], ex.Message);
3403
CommandLineSwitchException
.Throw("InvalidProfilerValue", parameters[parameters.Length - 1],
3408
CommandLineSwitchException
.Throw("InvalidProfilerValue", parameters[parameters.Length - 1],
3413
CommandLineSwitchException
.Throw("InvalidProfilerValue", parameters[parameters.Length - 1],
3432
CommandLineSwitchException
.Throw("InvalidNodeNumberValue", value);
3527
CommandLineSwitchException
.Throw("InvalidNodeNumberValue", nodeMode.ToString());
3562
CommandLineSwitchException
.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message);
3566
CommandLineSwitchException
.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message);
3569
CommandLineSwitchException
.VerifyThrow(cpuCount > 0 && cpuCount <= 1024, "InvalidMaxCPUCountValueOutsideRange", parameters[parameters.Length - 1]);
3796
CommandLineSwitchException
.Throw("NameInvalid", nameof(XMakeElements.target), parameter, parameter[indexOfSpecialCharacter].ToString());
3844
CommandLineSwitchException
.VerifyThrow((parameterSections[0].Length > 0) && (parameterSections.Length == 2),
4356
CommandLineSwitchException
.Throw("InvalidVerbosityError", value);
4442
CommandLineSwitchException
.VerifyThrow(loggerSpec[0].Length > 0,
4479
CommandLineSwitchException
.VerifyThrow(loggerAssemblySpec.Length > 0,