112 references to ThrowInternalError
Microsoft.Build (107)
BackEnd\BuildManager\BuildManager.cs (4)
1629ErrorUtilities.ThrowInternalError("Unexpected packet received by BuildManager: {0}", packet.Type); 2146ErrorUtilities.ThrowInternalError("Expected state {0}, actual state {1}", requiredState, _buildManagerState); 2696ErrorUtilities.ThrowInternalError("Scheduling action {0} not handled.", response.Action); 3082ErrorUtilities.ThrowInternalError("Incorrect packet type: {0} should have been {1}", packet.Type, expectedType);
BackEnd\Client\MSBuildClientPacketPump.cs (4)
246ErrorUtilities.ThrowInternalError("Server disconnected abruptly"); 250ErrorUtilities.ThrowInternalError("Incomplete header read. {0} of {1} bytes read", headerBytesRead, headerByte.Length); 269ErrorUtilities.ThrowInternalError("Incomplete packet read. {0} of {1} bytes read", packetBytesRead, packetLength); 303ErrorUtilities.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)
299ErrorUtilities.ThrowInternalError("Failure during engine shutdown. Exception: {0}", e.ToString()); 757ErrorUtilities.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)
126ErrorUtilities.ThrowInternalError("Do not use this method for the transport sink");
BackEnd\Components\Logging\EventSourceSink.cs (1)
278ErrorUtilities.ThrowInternalError("Unknown event args type.");
BackEnd\Components\Logging\LoggingService.cs (3)
907ErrorUtilities.ThrowInternalError("Expected packet type \"{0}\" but instead got packet type \"{1}\".", nameof(NodePacketType.LogMessage), packet.Type.ToString()); 1492ErrorUtilities.ThrowInternalError("Unknown logging item in queue:" + loggingEvent.GetType().FullName); 1851ErrorUtilities.ThrowInternalError("ContextID {0} should have been in the ID-to-project file mapping but wasn't!", context.ProjectContextId);
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (4)
530ErrorUtilities.ThrowInternalError("ContextID {0} for project {1} should not already be in the ID-to-file mapping!", projectContextId, projectFile); 542ErrorUtilities.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); 552ErrorUtilities.ThrowInternalError("ContextID {0} should have been in the ID-to-project file mapping but wasn't!", projectContextId); 610ErrorUtilities.ThrowInternalError("ContextID {0} for project {1} should be in the ID-to-file mapping!", projectBuildEventContext.ProjectContextId, projectFile);
BackEnd\Components\RequestBuilder\BatchingEngine.cs (2)
106ErrorUtilities.ThrowInternalError("Need the parameters of the batchable object to determine if it can be batched."); 111ErrorUtilities.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)
235ErrorUtilities.ThrowInternalError("CopyTo is not supported on PropertyDictionary.");
Collections\PropertyDictionary.cs (2)
112ErrorUtilities.ThrowInternalError("Keys is not supported on PropertyDictionary."); 410ErrorUtilities.ThrowInternalError("CopyTo is not supported on PropertyDictionary.");
Collections\ReadOnlyConvertingDictionary.cs (1)
58ErrorUtilities.ThrowInternalError("Values is not supported on ReadOnlyConvertingDictionary.");
Collections\RetrievableEntryHashSet\HashSet.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)
940set { ErrorUtilities.ThrowInternalError("Cannot change the item type on ProjectItem.ProjectItemFactory"); }
ErrorUtilities.cs (11)
48ThrowInternalError(message, args); 104ThrowInternalError("This type does not implement ToString() properly {0}", param.GetType().FullName); 120ThrowInternalError("{0} unexpectedly null", parameterName); 135ThrowInternalError("Lock should already have been taken"); 153ThrowInternalError("{0} unexpectedly empty", parameterName); 163ThrowInternalError("{0} unexpectedly empty", parameterName); 177ThrowInternalError("{0} unexpectedly not a rooted path", value); 203ThrowInternalError(unformattedMessage, arg0); 214ThrowInternalError(unformattedMessage, arg0, arg1); 225ThrowInternalError(unformattedMessage, arg0, arg1, arg2); 236ThrowInternalError(unformattedMessage, arg0, arg1, arg2, arg3);
Evaluation\Evaluator.cs (3)
557ErrorUtilities.ThrowInternalError("Unexpected child"); 925ErrorUtilities.ThrowInternalError("Unexpected child type"); 1544ErrorUtilities.ThrowInternalError("Unexpected child type");
FileMatcher.cs (1)
231ErrorUtilities.ThrowInternalError("Unexpected filesystem entity type.");
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)
710ErrorUtilities.ThrowInternalError("Unexpected frame type."); 760ErrorUtilities.ThrowInternalError("Unexpected frame type."); 802ErrorUtilities.ThrowInternalError(errorMessage);
LogMessagePacketBase.cs (1)
886ErrorUtilities.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."); 669ErrorUtilities.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)
243ErrorUtilities.ThrowInternalError("Invalid resource parameter type, was {0}", 275ErrorUtilities.ThrowInternalError("The resource string \"" + resourceName + "\" was not found."); 283ErrorUtilities.ThrowInternalError(e.Message); 290ErrorUtilities.ThrowInternalError(e.Message); 297ErrorUtilities.ThrowInternalError(e.Message);
TaskLoggingHelper.cs (1)
1435ErrorUtilities.ThrowInternalError("Impossible canonical part.");
Microsoft.Build.Framework.UnitTests (5)
ResourceUtilities.cs (5)
243ErrorUtilities.ThrowInternalError("Invalid resource parameter type, was {0}", 275ErrorUtilities.ThrowInternalError("The resource string \"" + resourceName + "\" was not found."); 283ErrorUtilities.ThrowInternalError(e.Message); 290ErrorUtilities.ThrowInternalError(e.Message); 297ErrorUtilities.ThrowInternalError(e.Message);