115 references to ThrowInternalError
Microsoft.Build (110)
BackEnd\BuildManager\BuildManager.cs (4)
1641ErrorUtilities.ThrowInternalError("Unexpected packet received by BuildManager: {0}", packet.Type); 2131ErrorUtilities.ThrowInternalError("Expected state {0}, actual state {1}", requiredState, _buildManagerState); 2676ErrorUtilities.ThrowInternalError("Scheduling action {0} not handled.", response.Action); 3085ErrorUtilities.ThrowInternalError("Incorrect packet type: {0} should have been {1}", packet.Type, expectedType);
BackEnd\BuildManager\BuildSubmission.cs (1)
230ErrorUtilities.ThrowInternalError("BuildResult configuration ({0}) doesn't match BuildRequest configuration ({1})",
BackEnd\Client\MSBuildClientPacketPump.cs (4)
247ErrorUtilities.ThrowInternalError("Server disconnected abruptly"); 251ErrorUtilities.ThrowInternalError("Incomplete header read. {0} of {1} bytes read", headerBytesRead, headerByte.Length); 270ErrorUtilities.ThrowInternalError("Incomplete packet read. {0} of {1} bytes read", packetBytesRead, packetLength); 304ErrorUtilities.ThrowInternalError("WaitId {0} out of range.", waitId);
BackEnd\Components\BuildComponentFactoryCollection.cs (1)
159ErrorUtilities.ThrowInternalError("No factory registered for component type {0}", type);
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (2)
302ErrorUtilities.ThrowInternalError("Failure during engine shutdown. Exception: {0}", e.ToString()); 760ErrorUtilities.ThrowInternalError("Unexpected BuildRequestEntry state " + currentEntry.State);
BackEnd\Components\Caching\ResultsCache.cs (1)
86ErrorUtilities.ThrowInternalError("Failed to add result for configuration {0}", result.ConfigurationId);
BackEnd\Components\Communications\NodeEndpointInProc.cs (1)
446ErrorUtilities.ThrowInternalError("waitId {0} out of range.", waitId);
BackEnd\Components\Communications\NodeManager.cs (2)
126ErrorUtilities.ThrowInternalError("Node {0} does not have a provider.", node); 309ErrorUtilities.ThrowInternalError("No node provider provided.");
BackEnd\Components\Communications\NodeProviderInProc.cs (1)
442ErrorUtilities.ThrowInternalError("Unexpected shutdown code {0} received.", reason);
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (1)
87ErrorUtilities.ThrowInternalError("Exceeded max node count of '{0}', current count is '{1}' ", ComponentHost.BuildParameters.MaxNodeCount, _nodeContexts.Count);
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (2)
419ErrorUtilities.ThrowInternalError("ARM64 CLR2 task hosts are not supported."); 535ErrorUtilities.ThrowInternalError("All allowable nodes already created ({0}).", _nodeContexts.Count);
BackEnd\Components\Logging\BuildEventArgTransportSink.cs (1)
127ErrorUtilities.ThrowInternalError("Do not use this method for the transport sink");
BackEnd\Components\Logging\EventSourceSink.cs (1)
289ErrorUtilities.ThrowInternalError("Unknown event args type.");
BackEnd\Components\Logging\LoggingContext.cs (1)
330ErrorUtilities.ThrowInternalError("LoggingContext (type: {0}) was not valid during logging attempt.",
BackEnd\Components\Logging\LoggingService.cs (3)
968ErrorUtilities.ThrowInternalError("Expected packet type \"{0}\" but instead got packet type \"{1}\".", nameof(NodePacketType.LogMessage), packet.Type.ToString()); 1557ErrorUtilities.ThrowInternalError("Unknown logging item in queue:" + loggingEvent.GetType().FullName); 1937ErrorUtilities.ThrowInternalError("ContextID {0} should have been in the ID-to-project file mapping but wasn't!", context.ProjectContextId);
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (4)
543ErrorUtilities.ThrowInternalError("ContextID {0} for project {1} should not already be in the ID-to-file mapping!", projectContextId, projectFile); 555ErrorUtilities.ThrowInternalError("ContextID {0} was already in the ID-to-project file mapping but the project file {1} did not match the provided one {2}!", projectContextId, existingProjectFile, projectFile); 565ErrorUtilities.ThrowInternalError("ContextID {0} should have been in the ID-to-project file mapping but wasn't!", projectContextId); 621ErrorUtilities.ThrowInternalError("ContextID {0} for project {1} should be in the ID-to-file mapping!", projectBuildEventContext.ProjectContextId, projectFile);
BackEnd\Components\RequestBuilder\BatchingEngine.cs (2)
110ErrorUtilities.ThrowInternalError("Need the parameters of the batchable object to determine if it can be batched."); 115ErrorUtilities.ThrowInternalError("Need to specify the lookup.");
BackEnd\Components\RequestBuilder\IntrinsicTask.cs (1)
80ErrorUtilities.ThrowInternalError("Unhandled intrinsic task type {0}", taskInstance.GetType().GetTypeInfo().BaseType);
BackEnd\Components\RequestBuilder\IntrinsicTasks\IntrinsicTaskFactory.cs (2)
52ErrorUtilities.ThrowInternalError("Unexpected task name {0}. Expected {1}", taskName, TaskType.Name); 87ErrorUtilities.ThrowInternalError("Unexpected intrinsic task type {0}", TaskType);
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (1)
185ErrorUtilities.ThrowInternalError("Unexpected case {0}", _skipNonExistentProjects);
BackEnd\Components\RequestBuilder\TargetBuilder.cs (2)
333ErrorUtilities.ThrowInternalError("This method should never be called by anyone except the TargetBuilder."); 537ErrorUtilities.ThrowInternalError("Unexpected target state {0}", currentTargetEntry.State);
BackEnd\Components\Scheduler\SchedulableRequest.cs (1)
465ErrorUtilities.ThrowInternalError("State {0} is not one of the expected states.", _state);
BackEnd\Components\Scheduler\Scheduler.cs (4)
758ErrorUtilities.ThrowInternalError("Somehow no requests are currently executing, and at least one of the {0} requests blocked by in-progress requests is servicable by a currently existing node, but no circular dependency was detected ...", _schedulingData.BlockedRequestsCount); 765ErrorUtilities.ThrowInternalError("None of the {0} blocked requests can be serviced by currently existing nodes, but we aren't requesting a new one.", _schedulingData.BlockedRequestsCount); 771ErrorUtilities.ThrowInternalError("Somehow we have {0} requests which are ready to go but we didn't tell the nodes to continue.", _schedulingData.ReadyRequestsCount); 776ErrorUtilities.ThrowInternalError("Somehow we have {0} unassigned build requests but {1} of our nodes are free and we aren't requesting a new one...", _schedulingData.UnscheduledRequestsCount, idleNodes.Count);
BackEnd\Components\Scheduler\SchedulingData.cs (3)
317ErrorUtilities.ThrowInternalError("Should not be updating a request after it has reached the Completed state."); 419ErrorUtilities.ThrowInternalError("Request with global id {0} cannot transition to the Unscheduled state", request.BuildRequest.GlobalRequestId); 740ErrorUtilities.ThrowInternalError("Request {0} was expected to be in state {1} but is not scheduled at all (it may be unscheduled or may be unknown to the system.)", globalRequestId, state);
BackEnd\Node\InProcNode.cs (1)
222ErrorUtilities.ThrowInternalError("Unexpected call to DeserializeAndRoutePacket on the in-proc node.");
Collections\CopyOnWritePropertyDictionary.cs (1)
295ErrorUtilities.ThrowInternalError("CopyTo is not supported on PropertyDictionary.");
Collections\PropertyDictionary.cs (2)
113ErrorUtilities.ThrowInternalError("Keys is not supported on PropertyDictionary."); 429ErrorUtilities.ThrowInternalError("CopyTo is not supported on PropertyDictionary.");
Collections\ReadOnlyConvertingDictionary.cs (1)
58ErrorUtilities.ThrowInternalError("Values is not supported on ReadOnlyConvertingDictionary.");
Collections\RetrievableEntryHashSet\RetrievableEntryHashSet.cs (1)
123ErrorUtilities.ThrowInternalError("use explicit comparer");
Construction\ProjectChooseElement.cs (1)
84ErrorUtilities.ThrowInternalError("Should not evaluate this");
Construction\ProjectElement.cs (1)
509ErrorUtilities.ThrowInternalError("{0}.Clone() returned an instance of type {1}.", GetType().Name, clone.GetType().Name);
Construction\ProjectExtensionsElement.cs (1)
91ErrorUtilities.ThrowInternalError("Should not evaluate this");
Construction\ProjectOtherwiseElement.cs (1)
79ErrorUtilities.ThrowInternalError("Should not evaluate this");
Construction\ProjectRootElement.cs (1)
632ErrorUtilities.ThrowInternalError("Should not evaluate this");
Construction\ProjectUsingTaskBodyElement.cs (1)
111ErrorUtilities.ThrowInternalError("Should not evaluate this");
Construction\ProjectUsingTaskParameterElement.cs (1)
142ErrorUtilities.ThrowInternalError("Should not evaluate this");
Construction\UsingTaskParameterGroupElement.cs (1)
69ErrorUtilities.ThrowInternalError("Should not evaluate this");
ConversionUtilities.cs (1)
147Error.ThrowInternalError("Cannot numeric evaluate");
Definition\ProjectItem.cs (1)
945set { ErrorUtilities.ThrowInternalError("Cannot change the item type on ProjectItem.ProjectItemFactory"); }
ErrorUtilities.cs (11)
48ThrowInternalError(message, args); 107ThrowInternalError("This type does not implement ToString() properly {0}", param.GetType().FullName!); 123ThrowInternalError("{0} unexpectedly null", parameterName); 138ThrowInternalError("Lock should already have been taken"); 156ThrowInternalError("{0} unexpectedly empty", parameterName); 166ThrowInternalError("{0} unexpectedly empty", parameterName); 180ThrowInternalError("{0} unexpectedly not a rooted path", value); 206ThrowInternalError(unformattedMessage, arg0); 217ThrowInternalError(unformattedMessage, arg0, arg1); 228ThrowInternalError(unformattedMessage, arg0, arg1, arg2); 239ThrowInternalError(unformattedMessage, arg0, arg1, arg2, arg3);
Evaluation\Evaluator.cs (3)
571ErrorUtilities.ThrowInternalError("Unexpected child"); 927ErrorUtilities.ThrowInternalError("Unexpected child type"); 1479ErrorUtilities.ThrowInternalError("Unexpected child type");
FileMatcher.cs (2)
231ErrorUtilities.ThrowInternalError("Unexpected filesystem entity type."); 1678ErrorUtilities.ThrowInternalError("Unexpected empty 'input' provided.");
Instance\TaskFactories\AssemblyTaskFactory.cs (6)
118ErrorUtilities.ThrowInternalError("Use internal call to properly initialize the assembly task factory"); 143ErrorUtilities.ThrowInternalError("Use internal call to properly initialize the assembly task factory"); 167ErrorUtilities.ThrowInternalError("Use internal call to properly create a task instance from the assembly task factory"); 190ErrorUtilities.ThrowInternalError("Use internal call to properly create a task instance from the assembly task factory"); 584ErrorUtilities.ThrowInternalError("How did we get two runtime values that were unmergeable?"); 596ErrorUtilities.ThrowInternalError("How did we get two runtime values that were unmergeable?");
Instance\TaskFactories\TaskHostTask.cs (1)
559ErrorUtilities.ThrowInternalError("Unknown event args type.");
Instance\TaskFactoryWrapper.cs (1)
237ErrorUtilities.ThrowInternalError("Task does not implement IGeneratedTask and we don't have {0} either.", typeof(ReflectableTaskPropertyInfo).Name);
InterningBinaryReader.cs (2)
126ErrorUtilities.ThrowInternalError("From calculating based on the memorystream, about to read n = {0}. length = {1}, rawPosition = {2}, readLength = {3}, stringLength = {4}, currPos = {5}.", n, length, rawPosition, readLength, stringLength, currPos); 141ErrorUtilities.ThrowInternalError("From getting the length out of BaseStream.Read directly, about to read n = {0}. readLength = {1}, stringLength = {2}, currPos = {3}", n, readLength, stringLength, currPos);
Logging\BaseConsoleLogger.cs (1)
295ErrorUtilities.ThrowInternalError("Impossible");
Logging\DistributedLoggers\DistributedFileLogger.cs (1)
189ErrorUtilities.ThrowInternalError("Should not be getting verbosity from distributed file logger");
Logging\SerialConsoleLogger.cs (3)
714ErrorUtilities.ThrowInternalError("Unexpected frame type."); 764ErrorUtilities.ThrowInternalError("Unexpected frame type."); 806ErrorUtilities.ThrowInternalError(errorMessage);
LogMessagePacketBase.cs (1)
901ErrorUtilities.ThrowInternalError("Not Supported LoggingEventType {0}", eventType.ToString());
Modifiers.cs (2)
588ErrorUtilities.ThrowInternalError("\"{0}\" is not a valid item-spec modifier.", modifier); 597ErrorUtilities.ThrowInternalError("\"{0}\" is not a valid item-spec modifier.", modifier);
MSBuildNameIgnoreCaseComparer.cs (2)
49ErrorUtilities.ThrowInternalError("Invalid lengthToCompare '{0}' {1} {2}", constrainedString, start, lengthToCompare); 54ErrorUtilities.ThrowInternalError("Invalid start '{0}' {1} {2}", constrainedString, start, lengthToCompare);
NodeEndpointOutOfProcBase.cs (2)
167ErrorUtilities.ThrowInternalError("Connect() not valid on the out of proc endpoint."); 671ErrorUtilities.ThrowInternalError("waitId {0} out of range.", waitId);
NodePacketFactory.cs (1)
55ErrorUtilities.ThrowInternalError("No packet handler for type {0}", packetType);
PrintLineDebugger.cs (3)
77ErrorUtilities.ThrowInternalError("Cannot set a new writer over an old writer. Remove the old one first"); 99ErrorUtilities.ThrowInternalError("Cannot unset an already null writer"); 161ErrorUtilities.ThrowInternalError($"The writer from this {nameof(PrintLineDebugger)} instance differs from the static writer.");
ResourceUtilities.cs (5)
438ErrorUtilities.ThrowInternalError( 464ErrorUtilities.ThrowInternalError("The resource string \"" + resourceName + "\" was not found."); 472ErrorUtilities.ThrowInternalError(e.Message); 479ErrorUtilities.ThrowInternalError(e.Message); 486ErrorUtilities.ThrowInternalError(e.Message);
TaskLoggingHelper.cs (1)
1436ErrorUtilities.ThrowInternalError("Impossible canonical part.");
Microsoft.Build.Framework.UnitTests (5)
ResourceUtilities.cs (5)
438ErrorUtilities.ThrowInternalError( 464ErrorUtilities.ThrowInternalError("The resource string \"" + resourceName + "\" was not found."); 472ErrorUtilities.ThrowInternalError(e.Message); 479ErrorUtilities.ThrowInternalError(e.Message); 486ErrorUtilities.ThrowInternalError(e.Message);