77 references to ErrorUtilities
MSBuildTaskHost (77)
BackEnd\BinaryTranslator.cs (2)
56
ErrorUtilities
.ThrowInternalError("Cannot get writer from reader.");
384
ErrorUtilities
.ThrowInternalError("Cannot get reader from writer.");
BackEnd\InterningBinaryReader.cs (2)
100
ErrorUtilities
.ThrowInternalError($"From calculating based on the memorystream, about to read n = {n}. length = {length}, rawPosition = {rawPosition}, readLength = {readLength}, stringLength = {stringLength}, currPos = {currPos}.");
115
ErrorUtilities
.ThrowInternalError($"From getting the length out of BaseStream.Read directly, about to read n = {n}. readLength = {readLength}, stringLength = {stringLength}, currPos = {currPos}");
BackEnd\LogMessagePacketBase.cs (6)
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}");
314
ErrorUtilities
.ThrowInternalErrorUnreachable();
446
ErrorUtilities
.ThrowInternalError($"Not Supported LoggingEventType {eventType}");
BackEnd\NodeEndpointOutOfProcTaskHost.cs (15)
145
ErrorUtilities
.VerifyThrow(_status == LinkStatus.Inactive, "Link not inactive. Status is {0}", _status);
146
ErrorUtilities
.VerifyThrowArgumentNull(factory);
168
=>
ErrorUtilities
.ThrowInternalError("Connect() not valid on the out of proc endpoint.");
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.");
193
ErrorUtilities
.VerifyThrowArgumentNull(packet);
198
ErrorUtilities
.VerifyThrow(_packetQueue != null, $"{nameof(_packetQueue)} is null");
199
ErrorUtilities
.VerifyThrow(_packetAvailable != null, $"{nameof(_packetAvailable)} is null");
220
ErrorUtilities
.VerifyThrow(_status != newStatus, "Attempting to change status to existing status {0}.", _status);
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");
586
ErrorUtilities
.ThrowInternalError($"waitId {waitId} out of range.");
BackEnd\NodePacketFactory.cs (3)
43
ErrorUtilities
.ThrowInternalError($"No packet handler for type {packetType}");
57
ErrorUtilities
.ThrowInternalError($"No packet handler for type {packetType}");
70
ErrorUtilities
.ThrowInternalError($"No packet handler for type {packet.Type}");
BackEnd\TaskHostConfiguration.cs (2)
150
ErrorUtilities
.VerifyThrowInternalLength(taskName, nameof(taskName));
151
ErrorUtilities
.VerifyThrowInternalLength(taskLocation, nameof(taskLocation));
BackEnd\TaskHostTaskComplete.cs (1)
91
ErrorUtilities
.VerifyThrowInternalNull(result);
BackEnd\TaskParameter.cs (13)
102
ErrorUtilities
.VerifyThrow(
139
ErrorUtilities
.ThrowInternalErrorUnreachable();
174
ErrorUtilities
.ThrowInternalErrorUnreachable();
243
ErrorUtilities
.ThrowInternalErrorUnreachable();
556
ErrorUtilities
.VerifyThrowInternalNull(_escapedItemSpec);
634
ErrorUtilities
.VerifyThrowArgumentLength(metadataName);
638
ErrorUtilities
.VerifyThrowArgument(
653
ErrorUtilities
.VerifyThrowArgumentNull(metadataName);
654
ErrorUtilities
.VerifyThrowArgument(
679
ErrorUtilities
.VerifyThrowArgumentNull(destinationItem);
730
ErrorUtilities
.VerifyThrowArgumentNull(metadataName);
755
ErrorUtilities
.VerifyThrowInternalNull(_escapedItemSpec);
756
ErrorUtilities
.VerifyThrowInternalNull(_customEscapedMetadata);
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.");
OutOfProcTaskHost.cs (1)
129
ErrorUtilities
.ThrowInternalErrorUnreachable();
OutOfProcTaskHostNode.cs (16)
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.");
462
ErrorUtilities
.VerifyThrowInternalNull(_taskCompletePacket, "taskCompletePacket");
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.");
697
ErrorUtilities
.VerifyThrowInternalNull(s_mismatchedEnvironmentValues, "mismatchedEnvironmentValues");
756
ErrorUtilities
.VerifyThrowInternalNull(s_mismatchedEnvironmentValues, "mismatchedEnvironmentValues");
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 (4)
34
ErrorUtilities
.VerifyThrow(isDesiredType != null, "need a type filter");
197
ErrorUtilities
.VerifyThrowArgumentNull(typeFilter);
198
ErrorUtilities
.VerifyThrowArgumentNull(assemblyFilePath);
211
ErrorUtilities
.VerifyThrowArgumentNull(typeName);
Utilities\FileUtilities.cs (1)
176
ErrorUtilities
.VerifyThrowArgumentLength(path);
Utilities\FileUtilities.ItemSpecModifiers.cs (7)
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.");
244
ErrorUtilities
.ThrowInvalidOperation(SR.Shared_InvalidFilespecForTransform, modifier, itemSpec, e.Message);
247
ErrorUtilities
.ThrowInternalError($"\"{modifier}\" is not a valid item-spec modifier.");
277
ErrorUtilities
.VerifyThrow(
318
ErrorUtilities
.VerifyThrow(