36 references to VerifyThrow
MSBuildTaskHost (36)
BackEnd\LogMessagePacketBase.cs (4)
167ErrorUtilities.VerifyThrow(nodeBuildEvent != null, "nodeBuildEvent was null"); 210ErrorUtilities.VerifyThrow(_eventType != LoggingEventType.CustomEvent, "_eventType should not be a custom event"); 250ErrorUtilities.VerifyThrow(_eventType != LoggingEventType.CustomEvent, "_eventType should not be a custom event"); 284ErrorUtilities.VerifyThrow(_buildEvent is not null, $"Unsupported LoggingEventType {_eventType}");
BackEnd\NodeEndpointOutOfProcTaskHost.cs (9)
175ErrorUtilities.VerifyThrow(_packetPump != null, $"{nameof(_packetPump)} is null."); 176ErrorUtilities.VerifyThrow(_packetPump.ManagedThreadId != Thread.CurrentThread.ManagedThreadId, "Can't join on the same thread."); 177ErrorUtilities.VerifyThrow(_terminatePacketPump != null, $"{nameof(_terminatePacketPump)} is null."); 198ErrorUtilities.VerifyThrow(_packetQueue != null, $"{nameof(_packetQueue)} is null"); 199ErrorUtilities.VerifyThrow(_packetAvailable != null, $"{nameof(_packetAvailable)} is null"); 233ErrorUtilities.VerifyThrow(_packetQueue != null, $"{nameof(_packetQueue)} is null"); 234ErrorUtilities.VerifyThrow(_terminatePacketPump != null, $"{nameof(_terminatePacketPump)} is null"); 235ErrorUtilities.VerifyThrow(_packetAvailable != null, $"{nameof(_packetAvailable)} is null"); 423ErrorUtilities.VerifyThrow(_packetFactory != null, $"{nameof(_packetFactory)} is null");
CommunicationsUtilities.cs (1)
481ErrorUtilities.VerifyThrow(bytes.Length == 4, "Int should be 4 bytes");
LoadedType.cs (3)
25ErrorUtilities.VerifyThrow(type != null, "We must have the type."); 26ErrorUtilities.VerifyThrow(assemblyFilePath != null, "We must have the assembly file path the type was loaded from."); 27ErrorUtilities.VerifyThrow(loadedAssembly is not null, "The assembly should always be loaded even if only by MetadataLoadContext.");
OutOfProcTaskHostNode.cs (13)
173ErrorUtilities.VerifyThrow(_currentConfiguration != null, "We should never have a null configuration during a BuildEngine callback!"); 185ErrorUtilities.VerifyThrow(_currentConfiguration != null, "We should never have a null configuration during a BuildEngine callback!"); 197ErrorUtilities.VerifyThrow(_currentConfiguration != null, "We should never have a null configuration during a BuildEngine callback!"); 209ErrorUtilities.VerifyThrow(_currentConfiguration != null, "We should never have a null configuration during a BuildEngine callback!"); 436ErrorUtilities.VerifyThrow(!_isTaskExecuting, "Why are we getting a TaskHostConfiguration packet while we're still executing a task?"); 453ErrorUtilities.VerifyThrow(!_isTaskExecuting, "The task should be done executing before CompleteTask."); 454ErrorUtilities.VerifyThrow(_nodeEndpoint != null, $"{nameof(_nodeEndpoint)} is null."); 507ErrorUtilities.VerifyThrow(!_isTaskExecuting, "We should never have a task in the process of executing when we receive NodeBuildComplete."); 522ErrorUtilities.VerifyThrow(_nodeEndpoint != null, $"{nameof(_nodeEndpoint)} is null."); 850ErrorUtilities.VerifyThrow(_currentConfiguration != null, $"{nameof(_currentConfiguration)} is null."); 872ErrorUtilities.VerifyThrow(_currentConfiguration != null, "We should never have a null configuration when we're trying to log messages!"); 888ErrorUtilities.VerifyThrow(_currentConfiguration != null, "We should never have a null configuration when we're trying to log warnings!"); 910ErrorUtilities.VerifyThrow(_currentConfiguration != null, "We should never have a null configuration when we're trying to log errors!");
TypeLoader.cs (1)
34ErrorUtilities.VerifyThrow(isDesiredType != null, "need a type filter");
Utilities\FileUtilities.ItemSpecModifiers.cs (5)
165ErrorUtilities.VerifyThrow(itemSpec != null, "Need item-spec to modify."); 166ErrorUtilities.VerifyThrow(modifier != null, "Need modifier to apply to item-spec."); 221ErrorUtilities.VerifyThrow(definingProjectEscaped != null, $"{nameof(definingProjectEscaped)} is null."); 277ErrorUtilities.VerifyThrow( 318ErrorUtilities.VerifyThrow(