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