39 references to FrameworkErrorUtilities
Microsoft.Build.Framework (39)
AssemblyUtilities.cs (2)
136
FrameworkErrorUtilities
.VerifyThrow(cultureTypesType?.Name == "CultureTypes" &&
145
FrameworkErrorUtilities
.VerifyThrowInternalNull(cultures);
BackEnd\InterningBinaryReader.cs (2)
121
FrameworkErrorUtilities
.ThrowInternalError($"From calculating based on the memorystream, about to read n = {n}. length = {length}, rawPosition = {rawPosition}, readLength = {readLength}, stringLength = {stringLength}, currPos = {currPos}.");
136
FrameworkErrorUtilities
.ThrowInternalError($"From getting the length out of BaseStream.Read directly, about to read n = {n}. readLength = {readLength}, stringLength = {stringLength}, currPos = {currPos}");
Collections\ReadOnlyCollection.cs (1)
38
FrameworkErrorUtilities
.VerifyThrow(backing != null, "Need backing collection");
CommunicationsUtilities.cs (1)
90
FrameworkErrorUtilities
.VerifyThrowInternalNull(FrameworkDebugUtils.ProcessInfoString, nameof(FrameworkDebugUtils.DebugPath));
FileUtilities.cs (3)
603
FrameworkErrorUtilities
.VerifyThrowInternalLength(path, nameof(path));
604
FrameworkErrorUtilities
.VerifyThrow(trailingSegmentsToKeep >= 0, "trailing segments must be positive");
1388
FrameworkErrorUtilities
.VerifyThrow(splitPath.Length > 0, "Cannot call MakeRelative on a path of only slashes.");
FileUtilities_TempFiles.cs (1)
195
FrameworkErrorUtilities
.VerifyThrow(!FileSystems.Default.FileExists(file), "Guid should be unique");
ItemSpecModifiers.cs (5)
394
FrameworkErrorUtilities
.VerifyThrow(itemSpec != null, "Need item-spec to modify.");
445
FrameworkErrorUtilities
.VerifyThrow(definingProjectEscaped != null, "How could definingProjectEscaped by null?");
497
FrameworkErrorUtilities
.VerifyThrow(
562
FrameworkErrorUtilities
.VerifyThrow(
572
FrameworkErrorUtilities
.VerifyThrow(
Loader\LoadedType.cs (3)
38
FrameworkErrorUtilities
.VerifyThrow(type != null, "We must have the type.");
39
FrameworkErrorUtilities
.VerifyThrow(assemblyLoadInfo != null, "We must have the assembly the type was loaded from.");
40
FrameworkErrorUtilities
.VerifyThrow(loadedAssembly is not null, "The assembly should always be loaded even if only by MetadataLoadContext.");
ReflectableTaskPropertyInfo.cs (1)
80
FrameworkErrorUtilities
.VerifyThrow(_propertyInfo != null, $"Could not find property {Name} on type {_taskType.FullName} that the task factory indicated should exist.");
ReuseableStringBuilder.cs (2)
189
FrameworkErrorUtilities
.VerifyThrow(_capacity != -1, "Reusing after dispose");
301
FrameworkErrorUtilities
.VerifyThrowInternalNull(returning._borrowedBuilder);
Utilities\AssemblyLoadInfo.cs (4)
28
FrameworkErrorUtilities
.VerifyThrow((!string.IsNullOrEmpty(assemblyName)) || (!string.IsNullOrEmpty(assemblyFile)),
30
FrameworkErrorUtilities
.VerifyThrow((assemblyName == null) || (assemblyFile == null),
111
FrameworkErrorUtilities
.VerifyThrow(translator.Mode == TranslationDirection.WriteToStream, "write only");
197
FrameworkErrorUtilities
.VerifyThrow(Path.IsPathRooted(assemblyFile), "Assembly file path should be rooted");
Utilities\AssemblyNameExtension.cs (3)
328
FrameworkErrorUtilities
.VerifyThrow(!immutable, "Object is immutable cannot replace the version");
385
FrameworkErrorUtilities
.VerifyThrow(extensionToAdd.Immutable, "ExtensionToAdd is not immutable");
516
FrameworkErrorUtilities
.VerifyThrow(result == baselineResult, "Optimized version of CompareBaseNameTo didn't return the same result as the baseline.");
Utilities\ConversionUtilities.cs (1)
158
FrameworkErrorUtilities
.ThrowInternalError("Cannot numeric evaluate");
Utilities\FileMatcher.cs (8)
243
FrameworkErrorUtilities
.ThrowInternalError("Unexpected filesystem entity type.");
461
FrameworkErrorUtilities
.VerifyThrow(
528
FrameworkErrorUtilities
.VerifyThrow(
852
FrameworkErrorUtilities
.VerifyThrow(
856
FrameworkErrorUtilities
.VerifyThrow(
860
FrameworkErrorUtilities
.VerifyThrow(recursionState.RemainingWildcardDirectory != null, "Expected non-null remaning wildcard directory.");
1196
FrameworkErrorUtilities
.VerifyThrow(
1693
FrameworkErrorUtilities
.ThrowInternalError("Unexpected empty 'input' provided.");
Utilities\QuotingUtilities.cs (2)
70
FrameworkErrorUtilities
.VerifyThrow(maxSplits >= 2, "There is no point calling this method for less than two splits.");
74
FrameworkErrorUtilities
.VerifyThrow(separators.IndexOf('"') == -1, "The double-quote character is not supported as a separator.");