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