100 references to ErrorUtilities
MSBuild (100)
AssemblyResources.cs (1)
33ErrorUtilities.VerifyThrow(resource != null, $"Missing resource '{name}'");
CommandLine\CommandLineParser.cs (4)
549ErrorUtilities.VerifyThrow(projectSwitchParameters.Length <= 1, "Expect exactly one project at a time."); 600ErrorUtilities.VerifyThrow(switchName == unquotedSwitchIndicatorAndName.Substring(switchIndicatorsLength), 603ErrorUtilities.VerifyThrow(doubleQuotesRemovedFromArg >= doubleQuotesRemovedFromSwitchIndicatorAndName, 632ErrorUtilities.VerifyThrow(switchParameters != null, "We must be able to extract the switch parameters.");
CommandLine\CommandLineSwitchException.cs (2)
57ErrorUtilities.VerifyThrowArgumentNull(info); 152ErrorUtilities.VerifyThrow(errorMessage != null, "The resource string must exist.");
InitializationException.cs (5)
62ErrorUtilities.VerifyThrowArgumentNull(info); 145ErrorUtilities.VerifyThrow(errorMessage != null, "The resource string must exist."); 167ErrorUtilities.VerifyThrow(errorMessage != null, "The resource string must exist."); 191ErrorUtilities.VerifyThrow(errorMessage != null, "The resource string must exist."); 208ErrorUtilities.VerifyThrow(message != null, "The string must exist.");
JsonOutputFormatter.cs (4)
35ErrorUtilities.VerifyThrow(_topLevelNode["Properties"] is null, "Should not add multiple lists of properties to the json format."); 53ErrorUtilities.VerifyThrow(_topLevelNode["Items"] is null, "Should not add multiple lists of items to the json format."); 89ErrorUtilities.VerifyThrow(_topLevelNode["Items"] is null, "Should not add multiple lists of items to the json format."); 130ErrorUtilities.VerifyThrow(_topLevelNode["TargetResults"] is null, "Should not add multiple lists of target results to the json format.");
LogMessagePacketBase.cs (5)
294ErrorUtilities.VerifyThrow(nodeBuildEvent != null, "nodeBuildEvent was null"); 381ErrorUtilities.VerifyThrow(_eventType != LoggingEventType.CustomEvent, "_eventType should not be a custom event"); 422ErrorUtilities.VerifyThrow(_eventType != LoggingEventType.CustomEvent, "_eventType should not be a custom event"); 443ErrorUtilities.VerifyThrow(_buildEvent is not null, $"Not Supported LoggingEventType {_eventType}"); 771ErrorUtilities.ThrowInternalError($"Not Supported LoggingEventType {eventType}");
NodeEndpointOutOfProcBase.cs (9)
172ErrorUtilities.VerifyThrow(_status == LinkStatus.Inactive, $"Link not inactive. Status is {_status}"); 173ErrorUtilities.VerifyThrowArgumentNull(factory, nameof(factory)); 185ErrorUtilities.ThrowInternalError("Connect() not valid on the out of proc endpoint."); 292ErrorUtilities.VerifyThrow(_status != newStatus, $"Attempting to change status to existing status {_status}."); 315ErrorUtilities.VerifyThrow(_packetPump.ManagedThreadId != Thread.CurrentThread.ManagedThreadId, "Can't join on the same thread."); 332ErrorUtilities.VerifyThrowArgumentNull(packet, nameof(packet)); 333ErrorUtilities.VerifyThrow(_packetQueue != null, "packetQueue is null"); 334ErrorUtilities.VerifyThrow(_packetAvailable != null, "packetAvailable is null"); 795ErrorUtilities.ThrowInternalError($"waitId {waitId} out of range.");
NodePacketFactory.cs (3)
52ErrorUtilities.VerifyThrow( 65ErrorUtilities.VerifyThrow( 77ErrorUtilities.VerifyThrow(
OutOfProcTaskHostNode.cs (21)
268ErrorUtilities.VerifyThrow(EffectiveConfiguration != null, "We should never have a null configuration during a BuildEngine callback!"); 280ErrorUtilities.VerifyThrow(EffectiveConfiguration != null, "We should never have a null configuration during a BuildEngine callback!"); 292ErrorUtilities.VerifyThrow(EffectiveConfiguration != null, "We should never have a null configuration during a BuildEngine callback!"); 304ErrorUtilities.VerifyThrow(EffectiveConfiguration != null, "We should never have a null configuration during a BuildEngine callback!"); 515ErrorUtilities.VerifyThrow( 692ErrorUtilities.VerifyThrowArgumentOutOfRange(requestedCores > 0, nameof(requestedCores)); 708ErrorUtilities.VerifyThrowArgumentOutOfRange(coresToRelease > 0, nameof(coresToRelease)); 743ErrorUtilities.VerifyThrow(_taskHost.EffectiveConfiguration != null, "We should never have a null configuration during a BuildEngine callback!"); 944ErrorUtilities.ThrowInternalError($"HandleCallbackResponse called with non-callback packet type: {packet.GetType().Name}"); 966ErrorUtilities.ThrowInternalError($"TaskHost received callback response with no pending request. RequestId={callbackPacket.RequestId}, Type={packet.Type}"); 1103ErrorUtilities.ThrowInternalError($"Task ID {taskId} already exists in TaskHost."); 1126ErrorUtilities.VerifyThrowArgumentNull(context, nameof(context)); 1144ErrorUtilities.VerifyThrowArgumentNull(context, nameof(context)); 1171ErrorUtilities.VerifyThrow(_activeTaskCount == 0, 1261ErrorUtilities.VerifyThrow(_activeTaskCount == 0, "We should never have a task in the process of executing when we receive NodeBuildComplete."); 1487ErrorUtilities.VerifyThrow( 1564ErrorUtilities.VerifyThrowInternalNull(s_mismatchedEnvironmentValues, "mismatchedEnvironmentValues"); 1627ErrorUtilities.VerifyThrowInternalNull(s_mismatchedEnvironmentValues, "mismatchedEnvironmentValues"); 1755ErrorUtilities.VerifyThrow(EffectiveConfiguration != null, "We should never have a null configuration when we're trying to log messages!"); 1772ErrorUtilities.VerifyThrow(EffectiveConfiguration != null, "We should never have a null configuration when we're trying to log warnings!"); 1795ErrorUtilities.VerifyThrow(EffectiveConfiguration != null, "We should never have a null configuration when we're trying to log errors!");
OutOfProcTaskHostTaskResult.cs (3)
65ErrorUtilities.VerifyThrowInternalNull(taskException); 70ErrorUtilities.VerifyThrow( 79ErrorUtilities.VerifyThrow(exceptionMessage != null, "If we have message args, we need a message.");
PrintLineDebugger.cs (4)
32ErrorUtilities.VerifyThrowInternalNull(propertyInfo); 83ErrorUtilities.ThrowInternalError("Cannot set a new writer over an old writer. Remove the old one first"); 105ErrorUtilities.ThrowInternalError("Cannot unset an already null writer"); 169ErrorUtilities.ThrowInternalError($"The writer from this {nameof(PrintLineDebugger)} instance differs from the static writer.");
ProjectSchemaValidationHandler.cs (4)
41ErrorUtilities.VerifyThrowArgumentNull(projectFile); 42ErrorUtilities.VerifyThrowArgumentNull(binPath); 75ErrorUtilities.VerifyThrowArgumentNull(schemaFile); 76ErrorUtilities.VerifyThrowArgumentNull(projectFile);
ResourceUtilities.cs (6)
39ErrorUtilities.VerifyThrowInternalNull(message); 428ErrorUtilities.ThrowInternalError($"Invalid resource parameter type, was {param.GetType().FullName}"); 452ErrorUtilities.ThrowInternalError("The resource string \"" + resourceName + "\" was not found."); 460ErrorUtilities.ThrowInternalError(e.Message); 467ErrorUtilities.ThrowInternalError(e.Message); 474ErrorUtilities.ThrowInternalError(e.Message);
StringExtensions.cs (3)
18ErrorUtilities.VerifyThrowArgumentNull(aString); 19ErrorUtilities.VerifyThrowArgumentNull(oldValue); 20ErrorUtilities.VerifyThrowArgumentLength(oldValue);
TaskHostConfiguration.cs (2)
187ErrorUtilities.VerifyThrowInternalLength(taskName, nameof(taskName)); 188ErrorUtilities.VerifyThrowInternalLength(taskLocation, nameof(taskLocation));
TaskHostTaskComplete.cs (1)
108ErrorUtilities.VerifyThrowInternalNull(result);
TaskParameter.cs (12)
117ErrorUtilities.VerifyThrow( 153ErrorUtilities.ThrowInternalErrorUnreachable(); 188ErrorUtilities.ThrowInternalErrorUnreachable(); 259ErrorUtilities.ThrowInternalErrorUnreachable(); 634ErrorUtilities.VerifyThrowInternalNull(_escapedItemSpec); 733ErrorUtilities.VerifyThrowArgumentLength(metadataName); 737ErrorUtilities.VerifyThrowArgument(!ItemSpecModifiers.IsDerivableItemSpecModifier(metadataName), "Shared.CannotChangeItemSpecModifiers", metadataName); 750ErrorUtilities.VerifyThrowArgumentNull(metadataName); 751ErrorUtilities.VerifyThrowArgument(!ItemSpecModifiers.IsItemSpecModifier(metadataName), "Shared.CannotChangeItemSpecModifiers", metadataName); 773ErrorUtilities.VerifyThrowArgumentNull(destinationItem); 956ErrorUtilities.VerifyThrowInternalNull(_escapedItemSpec); 957ErrorUtilities.VerifyThrowInternalNull(_customEscapedMetadata);
TypeLoader.cs (4)
119ErrorUtilities.VerifyThrow(isDesiredType != null, "need a type filter"); 422ErrorUtilities.VerifyThrowArgumentNull(typeFilter, "typefilter"); 423ErrorUtilities.VerifyThrowArgumentNull(loadInfo); 441ErrorUtilities.VerifyThrowArgumentNull(typeName);
XMake.cs (7)
661ErrorUtilities.VerifyThrowArgumentLength(commandLine); 1734ErrorUtilities.VerifyThrow(ex.HasBeenLogged, "Should have been logged"); 2362ErrorUtilities.VerifyThrow(!invokeBuild || !string.IsNullOrEmpty(projectFile), "We should have a project file if we're going to build."); 3112ErrorUtilities.VerifyThrow(parameters.Length <= 1, "Expect exactly one project at a time."); 3867ErrorUtilities.VerifyThrow((loggerSpec.Count >= 1) && (loggerSpec.Count <= 2), 3913ErrorUtilities.VerifyThrow((loggerSpec.Count >= 1) && (loggerSpec.Count <= 2), 3929ErrorUtilities.VerifyThrow(loggerTypeSpec.Count >= 1, "SplitUnquoted() must return at least one string");