27 references to Throw
Microsoft.Build (14)
BackEnd\BuildManager\BuildSubmission.cs (1)
228
InternalError.
Throw
($"BuildResult configuration ({result.ConfigurationId}) doesn't match BuildRequest configuration ({BuildRequest?.ConfigurationId})");
BackEnd\Client\MSBuildClientPacketPump.cs (1)
263
InternalError.
Throw
($"Incomplete header read. {headerBytesRead} of {headerByte.Length} bytes read");
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (1)
340
InternalError.
Throw
($"Failure during engine shutdown. Exception: {e}");
BackEnd\Components\Communications\NodeProviderInProc.cs (1)
440
InternalError.
Throw
($"Unexpected shutdown code {reason} received.");
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
638
InternalError.
Throw
($"Unknown plugin type: {plugin.Name}");
BackEnd\Components\Scheduler\SchedulableRequest.cs (1)
464
InternalError.
Throw
($"State {_state} is not one of the expected states.");
Construction\ProjectElement.cs (1)
509
InternalError.
Throw
($"{GetType().Name}.Clone() returned an instance of type {clone.GetType().Name}.");
Instance\TaskFactories\AssemblyTaskFactory.cs (2)
619
InternalError.
Throw
($"How did we get two runtime values that were unmergeable? TaskIdentity Runtime: {taskIdentityParameters.Runtime}, FactoryIdentity Runtime: {factoryIdentityParameters.Runtime}.");
624
InternalError.
Throw
($"How did we get two architecture values that were unmergeable? TaskIdentity Architecture: {taskIdentityParameters.Architecture}, FactoryIdentity Architecture: {factoryIdentityParameters.Architecture}.");
Instance\TaskFactories\TaskHostTask.cs (1)
762
InternalError.
Throw
($"HandleBuildRequest requires IBuildEngine3 but _buildEngine is {_buildEngine?.GetType().Name ?? "null"}");
src\msbuild\src\Shared\ErrorUtilities.cs (1)
37
InternalError.
Throw
($"This type does not implement ToString() properly {param.GetType().FullName!}");
src\msbuild\src\Shared\LogMessagePacketBase.cs (1)
779
InternalError.
Throw
($"Not Supported LoggingEventType {eventType}");
src\msbuild\src\Shared\NodeEndpointOutOfProcBase.cs (1)
795
InternalError.
Throw
($"waitId {waitId} out of range.");
src\msbuild\src\Shared\ResourceUtilities.cs (1)
428
InternalError.
Throw
($"Invalid resource parameter type, was {param.GetType().FullName}");
Microsoft.Build.Framework (1)
ErrorUtilities.cs (1)
75
InternalError.
Throw
($"{value} unexpectedly not a rooted path");
Microsoft.Build.Tasks.Core (3)
src\msbuild\src\Shared\ErrorUtilities.cs (1)
37
InternalError.
Throw
($"This type does not implement ToString() properly {param.GetType().FullName!}");
src\msbuild\src\Shared\LogMessagePacketBase.cs (1)
779
InternalError.
Throw
($"Not Supported LoggingEventType {eventType}");
src\msbuild\src\Shared\ResourceUtilities.cs (1)
428
InternalError.
Throw
($"Invalid resource parameter type, was {param.GetType().FullName}");
Microsoft.Build.Utilities.Core (2)
src\msbuild\src\Shared\ErrorUtilities.cs (1)
37
InternalError.
Throw
($"This type does not implement ToString() properly {param.GetType().FullName!}");
src\msbuild\src\Shared\ResourceUtilities.cs (1)
428
InternalError.
Throw
($"Invalid resource parameter type, was {param.GetType().FullName}");
MSBuild (7)
OutOfProcTaskHostNode.cs (3)
942
InternalError.
Throw
($"HandleCallbackResponse called with non-callback packet type: {packet.GetType().Name}");
964
InternalError.
Throw
($"TaskHost received callback response with no pending request. RequestId={callbackPacket.RequestId}, Type={packet.Type}");
1101
InternalError.
Throw
($"Task ID {taskId} already exists in TaskHost.");
src\msbuild\src\Shared\ErrorUtilities.cs (1)
37
InternalError.
Throw
($"This type does not implement ToString() properly {param.GetType().FullName!}");
src\msbuild\src\Shared\LogMessagePacketBase.cs (1)
779
InternalError.
Throw
($"Not Supported LoggingEventType {eventType}");
src\msbuild\src\Shared\NodeEndpointOutOfProcBase.cs (1)
795
InternalError.
Throw
($"waitId {waitId} out of range.");
src\msbuild\src\Shared\ResourceUtilities.cs (1)
428
InternalError.
Throw
($"Invalid resource parameter type, was {param.GetType().FullName}");