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