24 references to VerifyThrow
Microsoft.Build (24)
BackEnd\BuildManager\BuildManager.cs (1)
2556
ErrorUtilities.
VerifyThrow
(_activeNodes.Contains(node), "Unexpected shutdown from node {0} which shouldn't exist.", node);
BackEnd\BuildManager\LegacyThreadingData.cs (6)
91
ErrorUtilities.
VerifyThrow
(!_legacyThreadingEventsById.ContainsKey(submissionId), "Submission {0} should not already be registered with LegacyThreadingData", submissionId);
107
ErrorUtilities.
VerifyThrow
(_legacyThreadingEventsById.ContainsKey(submissionId), "Submission {0} should have been previously registered with LegacyThreadingData", submissionId);
130
ErrorUtilities.
VerifyThrow
(legacyThreadingEvents != null, "We're trying to wait on the legacy thread for submission {0}, but that submission has not been registered.", submissionId);
148
ErrorUtilities.
VerifyThrow
(legacyThreadingEvents != null, "We're trying to track when the legacy thread for submission {0} goes inactive, but that submission has not been registered.", submissionId);
171
ErrorUtilities.
VerifyThrow
(legacyThreadingEvents != null, "We're trying to signal that the legacy thread is ready for submission {0} to execute, but that submission has not been registered", submissionId);
193
ErrorUtilities.
VerifyThrow
(legacyThreadingEvents != null, "We're trying to signal that submission {0} is done with the legacy thread, but that submission has not been registered", submissionId);
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (2)
349
ErrorUtilities.
VerifyThrow
(!_requestsByGlobalRequestId.ContainsKey(request.GlobalRequestId), "Request {0} is already known to the engine.", request.GlobalRequestId);
418
ErrorUtilities.
VerifyThrow
(_requestsByGlobalRequestId.ContainsKey(unblocker.BlockedRequestId), "Request {0} is not known to the engine.", unblocker.BlockedRequestId);
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (1)
510
ErrorUtilities.
VerifyThrow
(!_outstandingRequests.ContainsKey(newRequest.NodeRequestId), "Already waiting for local request {0}", newRequest.NodeRequestId);
BackEnd\Components\Communications\NodeProviderInProc.cs (1)
385
ErrorUtilities.
VerifyThrow
(connected, "In-proc node failed to start up within {0}ms", connectionTimeout);
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (1)
134
ErrorUtilities.
VerifyThrow
(_nodeContexts.ContainsKey(nodeId), "Invalid node id specified: {0}.", nodeId);
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
172
ErrorUtilities.
VerifyThrow
(_nodeContexts.TryGetValue(nodeId, out NodeContext context), "Invalid host context specified: {0}.", nodeId);
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (3)
138
ErrorUtilities.
VerifyThrow
(projectFile != null, "ContextID {0} should have been in the ID-to-project file mapping but wasn't!", buildEventContext.ProjectContextId);
178
ErrorUtilities.
VerifyThrow
(projectFile != null, "ContextID {0} should have been in the ID-to-project file mapping but wasn't!", buildEventContext.ProjectContextId);
330
ErrorUtilities.
VerifyThrow
(projectFile != null, "ContextID {0} should have been in the ID-to-project file mapping but wasn't!", buildEventContext.ProjectContextId);
BackEnd\Components\Scheduler\SchedulableRequest.cs (1)
404
ErrorUtilities.
VerifyThrow
((_state == SchedulableRequestState.Ready) || !_schedulingData.IsRequestScheduled(this), "Another instance of request {0} is already scheduled.", _request.GlobalRequestId);
BackEnd\Components\Scheduler\SchedulingData.cs (6)
281
ErrorUtilities.
VerifyThrow
(_buildHierarchy.ContainsKey(parent), "Parent doesn't exist in build hierarchy for request {0}", request.BuildRequest.GlobalRequestId);
367
ErrorUtilities.
VerifyThrow
(_configurationToRequests.ContainsKey(request.BuildRequest.ConfigurationId), "Configuration {0} never had requests assigned to it.", request.BuildRequest.ConfigurationId);
368
ErrorUtilities.
VerifyThrow
(_configurationToRequests[request.BuildRequest.ConfigurationId].Count > 0, "Configuration {0} has no requests assigned to it.", request.BuildRequest.ConfigurationId);
380
ErrorUtilities.
VerifyThrow
(!_executingRequestByNode.ContainsKey(request.AssignedNode) || _executingRequestByNode[request.AssignedNode] == null, "Node {0} is currently executing a request.", request.AssignedNode);
492
ErrorUtilities.
VerifyThrow
(returnValue != null, "Global Request Id {0} has not been assigned and cannot be retrieved.", globalRequestId);
683
ErrorUtilities.
VerifyThrow
(
BackEnd\Shared\BuildRequestConfiguration.cs (1)
446
ErrorUtilities.
VerifyThrow
(!IsLoaded, "Already loaded the project for this configuration id {0}.", ConfigurationId);