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