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