81 references to Throw
Microsoft.Build (23)
BackEnd\Client\MSBuildClientPacketPump.cs (1)
259InternalError.Throw("Server disconnected abruptly");
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (2)
542InternalError.Throw(ResourceUtilities.GetResourceString("SDKPathResolution_Failed")); 547InternalError.Throw(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("SDKPathCheck_Failed", path));
BackEnd\Components\Logging\BuildEventArgTransportSink.cs (1)
125=> InternalError.Throw("Do not use this method for the transport sink");
BackEnd\Components\Logging\EventSourceSink.cs (2)
303InternalError.Throw("Unknown event args type."); 352InternalError.Throw("Unknown event args type.");
BackEnd\Components\Scheduler\SchedulingData.cs (1)
304InternalError.Throw("Should not be updating a request after it has reached the Completed state.");
BackEnd\Node\InProcNode.cs (1)
226=> InternalError.Throw("Unexpected call to DeserializeAndRoutePacket on the in-proc node.");
Collections\CopyOnWritePropertyDictionary.cs (1)
300=> InternalError.Throw("CopyTo is not supported on PropertyDictionary.");
Collections\PropertyDictionary.cs (1)
438=> InternalError.Throw("CopyTo is not supported on PropertyDictionary.");
Definition\ProjectItem.cs (1)
933set => InternalError.Throw("Cannot change the item type on ProjectItem.ProjectItemFactory");
Evaluation\Evaluator.cs (3)
584InternalError.Throw("Unexpected child"); 940InternalError.Throw("Unexpected child type"); 1498InternalError.Throw("Unexpected child type");
Instance\TaskFactories\TaskHostTask.cs (1)
703InternalError.Throw("Unknown event args type.");
src\msbuild\src\Shared\NodeEndpointOutOfProcBase.cs (1)
185InternalError.Throw("Connect() not valid on the out of proc endpoint.");
src\msbuild\src\Shared\ResourceUtilities.cs (3)
457InternalError.Throw(e.Message); 464InternalError.Throw(e.Message); 471InternalError.Throw(e.Message);
src\msbuild\src\Shared\TaskLoggingHelper.cs (1)
1407InternalError.Throw("Impossible canonical part.");
Utilities\EngineFileUtilities.cs (3)
286InternalError.Throw(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword( 329InternalError.Throw(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword( 361InternalError.Throw(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword(
Microsoft.Build.Framework (46)
Assumed.cs (42)
39InternalError.Throw(message ?? $"Expected {GetValueString(valueExpression)} to be null."); 58InternalError.Throw(handler.GetFormattedText()); 76InternalError.Throw(message ?? $"Expected {GetValueString(valueExpression)} to be non-null."); 95InternalError.Throw(handler.GetFormattedText()); 112InternalError.Throw(message ?? $"Expected {GetValueString(valueExpression)} to be non-null and non-empty."); 130InternalError.Throw(handler.GetFormattedText()); 148InternalError.Throw(message ?? $"Expected {GetValueString(collectionExpression)} to be non-null and non-empty."); 167InternalError.Throw(handler.GetFormattedText()); 186InternalError.Throw(message ?? $"{GetConditionString(conditionExpression)} expected to be true."); 204InternalError.Throw(handler.GetFormattedText()); 221InternalError.Throw(message ?? $"{GetConditionString(conditionExpression)} expected to be false."); 239InternalError.Throw(handler.GetFormattedText()); 259InternalError.Throw(message ?? $"Expected {GetValueString(valueExpression)} to be equal to '{GetStringOrNull(other)}'."); 280InternalError.Throw(handler.GetFormattedText()); 302InternalError.Throw(message ?? $"Expected {GetValueString(valueExpression)} to be equal to '{GetStringOrNull(other)}' ({comparisonType})."); 325InternalError.Throw(handler.GetFormattedText()); 346InternalError.Throw(message ?? $"Expected {GetValueString(valueExpression)} to not be equal to '{GetStringOrNull(other)}'."); 367InternalError.Throw(handler.GetFormattedText()); 389InternalError.Throw(message ?? $"Expected {GetValueString(valueExpression)} to not be equal to '{GetStringOrNull(other)}' ({comparisonType})."); 412InternalError.Throw(handler.GetFormattedText()); 428InternalError.Throw(message ?? $"Expected {GetValueString(value)} to be greater than '{GetStringOrNull(other)}'."); 450InternalError.Throw(handler.GetFormattedText()); 466InternalError.Throw(message ?? $"Expected {GetValueString(value)} to be greater than or equal to '{GetStringOrNull(other)}'."); 488InternalError.Throw(handler.GetFormattedText()); 504InternalError.Throw(message ?? $"Expected {GetValueString(value)} to be less than '{GetStringOrNull(other)}'."); 526InternalError.Throw(handler.GetFormattedText()); 542InternalError.Throw(message ?? $"Expected {GetValueString(value)} to be less than or equal to '{GetStringOrNull(other)}'."); 564InternalError.Throw(handler.GetFormattedText()); 577InternalError.Throw(message ?? $"Expected {GetValueString(value)} to be zero."); 595InternalError.Throw(handler.GetFormattedText()); 608InternalError.Throw(message ?? $"Expected {GetValueString(value)} to be negative."); 626InternalError.Throw(handler.GetFormattedText()); 639InternalError.Throw(message ?? $"Expected {GetValueString(value)} to be negative or zero."); 657InternalError.Throw(handler.GetFormattedText()); 670InternalError.Throw(message ?? $"Expected {GetValueString(value)} to be positive."); 688InternalError.Throw(handler.GetFormattedText()); 701InternalError.Throw(message ?? $"Expected {GetValueString(value)} to be positive or zero."); 719InternalError.Throw(handler.GetFormattedText()); 737InternalError.Throw(message ?? $"Expected {GetValueString(value)} to be in range [{GetStringOrNull(low)}, {GetStringOrNull(high)}]."); 762InternalError.Throw(handler.GetFormattedText()); 772=> InternalError.Throw(message ?? "Unreachable code reached."); 781=> InternalError.Throw(handler.GetFormattedText());
BuildCanceledEventArgs.cs (1)
49InternalError.Throw("Message cannot be null or consist only white-space characters.");
BuildException\BuildExceptionSerializationHelper.cs (1)
64InternalError.Throw("Serialization contract was already initialized.");
InternalError.cs (1)
32=> Throw(handler.GetFormattedText());
Utilities\FileMatcher.cs (1)
1695InternalError.Throw($"Unexpected empty '{nameof(input)}' provided.");
Microsoft.Build.Tasks.Core (3)
src\msbuild\src\Shared\ResourceUtilities.cs (3)
457InternalError.Throw(e.Message); 464InternalError.Throw(e.Message); 471InternalError.Throw(e.Message);
Microsoft.Build.Utilities.Core (5)
src\msbuild\src\Shared\ResourceUtilities.cs (3)
457InternalError.Throw(e.Message); 464InternalError.Throw(e.Message); 471InternalError.Throw(e.Message);
src\msbuild\src\Shared\TaskLoggingHelper.cs (1)
1407InternalError.Throw("Impossible canonical part.");
ToolTask.cs (1)
1016InternalError.Throw("Unknown tool notification.");
MSBuild (4)
src\msbuild\src\Shared\NodeEndpointOutOfProcBase.cs (1)
185InternalError.Throw("Connect() not valid on the out of proc endpoint.");
src\msbuild\src\Shared\ResourceUtilities.cs (3)
457InternalError.Throw(e.Message); 464InternalError.Throw(e.Message); 471InternalError.Throw(e.Message);