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