16 references to Throw
MSBuild (16)
CommandLineSwitches.cs (1)
892
CommandLineSwitchException.
Throw
("SwitchErrorWithArguments", _badCommandLineArg, ResourceUtilities.GetResourceString(_errorMessage), _commandLine, StringBuilderCache.GetStringAndRelease(sb));
CommandLineSwitchException.cs (1)
139
Throw
(messageResourceName, commandLineArg, String.Empty);
XMake.cs (14)
3195
CommandLineSwitchException.
Throw
("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message);
3199
CommandLineSwitchException.
Throw
("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message);
3227
CommandLineSwitchException.
Throw
("InvalidPreprocessPath", parameters[parameters.Length - 1], ex.Message);
3246
CommandLineSwitchException.
Throw
("TargetsCouldNotBePrinted", parameters[parameters.Length - 1], ex.Message);
3309
CommandLineSwitchException.
Throw
(resourceName, parameters[parameters.Length - 1], ex.Message);
3313
CommandLineSwitchException.
Throw
(resourceName, parameters[parameters.Length - 1], ex.Message);
3352
CommandLineSwitchException.
Throw
("InvalidProfilerValue", parameters[parameters.Length - 1],
3357
CommandLineSwitchException.
Throw
("InvalidProfilerValue", parameters[parameters.Length - 1],
3362
CommandLineSwitchException.
Throw
("InvalidProfilerValue", parameters[parameters.Length - 1],
3389
CommandLineSwitchException.
Throw
("InvalidNodeNumberValue", input[0], ex.Message);
3393
CommandLineSwitchException.
Throw
("InvalidNodeNumberValue", input[0], ex.Message);
3489
CommandLineSwitchException.
Throw
("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message);
3493
CommandLineSwitchException.
Throw
("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message);
3717
CommandLineSwitchException.
Throw
("NameInvalid", nameof(XMakeElements.target), parameter, parameter[indexOfSpecialCharacter].ToString());