1 instantiation of CommandLineSwitchException
MSBuild (1)
CommandLine\CommandLineSwitchException.cs (1)
154throw new CommandLineSwitchException(errorMessage, commandLineArg);
32 references to CommandLineSwitchException
MSBuild (32)
CommandLine\CommandLineSwitches.cs (1)
900CommandLineSwitchException.Throw("SwitchErrorWithArguments", _badCommandLineArg, ResourceUtilities.GetResourceString(_errorMessage), _commandLine, StringBuilderCache.GetStringAndRelease(sb));
FilteredBinlogReplay.cs (6)
80CommandLineSwitchException.VerifyThrow( 92CommandLineSwitchException.Throw("ReplayFilterInvalidOutput", parameter, ex.Message); 96CommandLineSwitchException.VerifyThrow(!File.Exists(outputPath) && !Directory.Exists(outputPath), "ReplayFilterOutputExists", outputPath); 110CommandLineSwitchException.VerifyThrow( 136CommandLineSwitchException.VerifyThrow( 174CommandLineSwitchException.VerifyThrow(outputPaths.Add(output.Path), "ReplayFilterOutputExists", output.Path);
XMake.cs (25)
1064CommandLineSwitchException.Throw("SolutionBuildInvalidForCommandLineEvaluation", 1216catch (CommandLineSwitchException e) 2656CommandLineSwitchException.VerifyThrow( 3042CommandLineSwitchException.Throw("InvalidTerminalLoggerValue", terminalLoggerArg); 3133CommandLineSwitchException.Throw("InvalidIsolateProjectsValue", parameter); 3164CommandLineSwitchException.Throw("InvalidGraphBuildValue", parameter); 3251CommandLineSwitchException.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message); 3255CommandLineSwitchException.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message); 3278CommandLineSwitchException.Throw("InvalidPreprocessPath", parameters[parameters.Length - 1], ex.Message); 3297CommandLineSwitchException.Throw("TargetsCouldNotBePrinted", parameters[parameters.Length - 1], ex.Message); 3360CommandLineSwitchException.Throw(resourceName, parameters[parameters.Length - 1], ex.Message); 3364CommandLineSwitchException.Throw(resourceName, parameters[parameters.Length - 1], ex.Message); 3403CommandLineSwitchException.Throw("InvalidProfilerValue", parameters[parameters.Length - 1], 3408CommandLineSwitchException.Throw("InvalidProfilerValue", parameters[parameters.Length - 1], 3413CommandLineSwitchException.Throw("InvalidProfilerValue", parameters[parameters.Length - 1], 3432CommandLineSwitchException.Throw("InvalidNodeNumberValue", value); 3527CommandLineSwitchException.Throw("InvalidNodeNumberValue", nodeMode.ToString()); 3562CommandLineSwitchException.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message); 3566CommandLineSwitchException.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message); 3569CommandLineSwitchException.VerifyThrow(cpuCount > 0 && cpuCount <= 1024, "InvalidMaxCPUCountValueOutsideRange", parameters[parameters.Length - 1]); 3796CommandLineSwitchException.Throw("NameInvalid", nameof(XMakeElements.target), parameter, parameter[indexOfSpecialCharacter].ToString()); 3844CommandLineSwitchException.VerifyThrow((parameterSections[0].Length > 0) && (parameterSections.Length == 2), 4356CommandLineSwitchException.Throw("InvalidVerbosityError", value); 4442CommandLineSwitchException.VerifyThrow(loggerSpec[0].Length > 0, 4479CommandLineSwitchException.VerifyThrow(loggerAssemblySpec.Length > 0,