156 references to FrameworkErrorUtilities
Microsoft.Build (31)
ErrorUtilities.cs (31)
19/// <inheritdoc cref="FrameworkErrorUtilities.DebugTraceMessage(string, string)"/> 21=> FrameworkErrorUtilities.DebugTraceMessage(category, message); 23/// <inheritdoc cref="FrameworkErrorUtilities.DebugTraceMessage(string, ref FrameworkErrorUtilities.DebugTraceInterpolatedStringHandler)"/> 24public static void DebugTraceMessage(string category, ref FrameworkErrorUtilities.DebugTraceInterpolatedStringHandler handler) 25=> FrameworkErrorUtilities.DebugTraceMessage(category, ref handler); 27/// <inheritdoc cref="FrameworkErrorUtilities.ThrowInternalError(string)"/> 30=> FrameworkErrorUtilities.ThrowInternalError(message); 32/// <inheritdoc cref="FrameworkErrorUtilities.ThrowInternalError(ref UnconditionalInterpolatedStringHandler)"/> 35=> FrameworkErrorUtilities.ThrowInternalError(ref handler); 37/// <inheritdoc cref="FrameworkErrorUtilities.ThrowInternalError(string, Exception)"/> 40=> FrameworkErrorUtilities.ThrowInternalError(message, innerException); 42/// <inheritdoc cref="FrameworkErrorUtilities.ThrowInternalError(ref UnconditionalInterpolatedStringHandler, Exception)"/> 45=> FrameworkErrorUtilities.ThrowInternalError(ref handler, innerException); 47/// <inheritdoc cref="FrameworkErrorUtilities.ThrowInternalErrorUnreachable()"/> 50=> FrameworkErrorUtilities.ThrowInternalErrorUnreachable(); 52/// <inheritdoc cref="FrameworkErrorUtilities.VerifyThrowInternalErrorUnreachable(bool)"/> 54=> FrameworkErrorUtilities.VerifyThrowInternalErrorUnreachable(condition); 72/// <inheritdoc cref="FrameworkErrorUtilities.VerifyThrowInternalNull(object?, string?)"/> 76=> FrameworkErrorUtilities.VerifyThrowInternalNull(parameter, parameterName); 92/// <inheritdoc cref="FrameworkErrorUtilities.VerifyThrowInternalLength(string?, string?)"/> 96=> FrameworkErrorUtilities.VerifyThrowInternalLength(parameterValue, parameterName); 101=> FrameworkErrorUtilities.VerifyThrowInternalLength(parameterValue, parameterName); 103/// <inheritdoc cref="FrameworkErrorUtilities.VerifyThrowInternalRooted(string)"/> 105=> FrameworkErrorUtilities.VerifyThrowInternalRooted(value); 107/// <inheritdoc cref="FrameworkErrorUtilities.VerifyThrow(bool, string)"/> 109=> FrameworkErrorUtilities.VerifyThrow(condition, message); 111/// <inheritdoc cref="FrameworkErrorUtilities.VerifyThrow(bool, ref FrameworkErrorUtilities.IsTrueInterpolatedStringHandler)"/> 114[InterpolatedStringHandlerArgument(nameof(condition))] ref FrameworkErrorUtilities.IsTrueInterpolatedStringHandler handler) 115=> FrameworkErrorUtilities.VerifyThrow(condition, ref handler);
Microsoft.Build.Framework (47)
BackEnd\CommunicationsUtilities.cs (6)
133FrameworkErrorUtilities.VerifyThrowInternalNull(FrameworkDebugUtils.ProcessInfoString, nameof(FrameworkDebugUtils.DebugPath)); 367FrameworkErrorUtilities.VerifyThrow(bytes.Length == 4, "Int should be 4 bytes"); 566FrameworkErrorUtilities.VerifyThrow(taskHostParameters.Runtime != null, "Should always have an explicit runtime when we call this method."); 567FrameworkErrorUtilities.VerifyThrow(taskHostParameters.Architecture != null, "Should always have an explicit architecture when we call this method."); 583FrameworkErrorUtilities.ThrowInternalErrorUnreachable(); 617FrameworkErrorUtilities.ThrowInternalErrorUnreachable();
BackEnd\Handshake.cs (1)
63FrameworkErrorUtilities.VerifyThrow(
BackEnd\InterningBinaryReader.cs (2)
121FrameworkErrorUtilities.ThrowInternalError($"From calculating based on the memorystream, about to read n = {n}. length = {length}, rawPosition = {rawPosition}, readLength = {readLength}, stringLength = {stringLength}, currPos = {currPos}."); 136FrameworkErrorUtilities.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)
38FrameworkErrorUtilities.VerifyThrow(backing != null, "Need backing collection");
FileUtilities.cs (3)
603FrameworkErrorUtilities.VerifyThrowInternalLength(path, nameof(path)); 604FrameworkErrorUtilities.VerifyThrow(trailingSegmentsToKeep >= 0, "trailing segments must be positive"); 1388FrameworkErrorUtilities.VerifyThrow(splitPath.Length > 0, "Cannot call MakeRelative on a path of only slashes.");
FileUtilities_TempFiles.cs (1)
195FrameworkErrorUtilities.VerifyThrow(!FileSystems.Default.FileExists(file), "Guid should be unique");
ItemSpecModifiers.cs (5)
394FrameworkErrorUtilities.VerifyThrow(itemSpec != null, "Need item-spec to modify."); 445FrameworkErrorUtilities.VerifyThrow(definingProjectEscaped != null, "How could definingProjectEscaped by null?"); 497FrameworkErrorUtilities.VerifyThrow( 562FrameworkErrorUtilities.VerifyThrow( 572FrameworkErrorUtilities.VerifyThrow(
Loader\LoadedType.cs (3)
38FrameworkErrorUtilities.VerifyThrow(type != null, "We must have the type."); 39FrameworkErrorUtilities.VerifyThrow(assemblyLoadInfo != null, "We must have the assembly the type was loaded from."); 40FrameworkErrorUtilities.VerifyThrow(loadedAssembly is not null, "The assembly should always be loaded even if only by MetadataLoadContext.");
ReflectableTaskPropertyInfo.cs (1)
80FrameworkErrorUtilities.VerifyThrow(_propertyInfo != null, $"Could not find property {Name} on type {_taskType.FullName} that the task factory indicated should exist.");
ReuseableStringBuilder.cs (2)
189FrameworkErrorUtilities.VerifyThrow(_capacity != -1, "Reusing after dispose"); 301FrameworkErrorUtilities.VerifyThrowInternalNull(returning._borrowedBuilder);
Utilities\AssemblyLoadInfo.cs (4)
28FrameworkErrorUtilities.VerifyThrow((!string.IsNullOrEmpty(assemblyName)) || (!string.IsNullOrEmpty(assemblyFile)), 30FrameworkErrorUtilities.VerifyThrow((assemblyName == null) || (assemblyFile == null), 111FrameworkErrorUtilities.VerifyThrow(translator.Mode == TranslationDirection.WriteToStream, "write only"); 197FrameworkErrorUtilities.VerifyThrow(Path.IsPathRooted(assemblyFile), "Assembly file path should be rooted");
Utilities\AssemblyNameExtension.cs (3)
328FrameworkErrorUtilities.VerifyThrow(!immutable, "Object is immutable cannot replace the version"); 385FrameworkErrorUtilities.VerifyThrow(extensionToAdd.Immutable, "ExtensionToAdd is not immutable"); 516FrameworkErrorUtilities.VerifyThrow(result == baselineResult, "Optimized version of CompareBaseNameTo didn't return the same result as the baseline.");
Utilities\ConversionUtilities.cs (1)
158FrameworkErrorUtilities.ThrowInternalError("Cannot numeric evaluate");
Utilities\FileMatcher.cs (8)
243FrameworkErrorUtilities.ThrowInternalError("Unexpected filesystem entity type."); 461FrameworkErrorUtilities.VerifyThrow( 528FrameworkErrorUtilities.VerifyThrow( 852FrameworkErrorUtilities.VerifyThrow( 856FrameworkErrorUtilities.VerifyThrow( 860FrameworkErrorUtilities.VerifyThrow(recursionState.RemainingWildcardDirectory != null, "Expected non-null remaning wildcard directory."); 1196FrameworkErrorUtilities.VerifyThrow( 1693FrameworkErrorUtilities.ThrowInternalError("Unexpected empty 'input' provided.");
Utilities\QuotingUtilities.cs (2)
70FrameworkErrorUtilities.VerifyThrow(maxSplits >= 2, "There is no point calling this method for less than two splits."); 74FrameworkErrorUtilities.VerifyThrow(separators.IndexOf('"') == -1, "The double-quote character is not supported as a separator.");
XMakeAttributes.cs (4)
163FrameworkErrorUtilities.VerifyThrow(runtimeA != String.Empty && runtimeB != String.Empty, "We should never get an empty string passed to this method"); 207FrameworkErrorUtilities.VerifyThrow(runtimeA != String.Empty && runtimeB != String.Empty, "We should never get an empty string passed to this method"); 280FrameworkErrorUtilities.VerifyThrow(architectureA != String.Empty && architectureB != String.Empty, "We should never get an empty string passed to this method"); 347FrameworkErrorUtilities.VerifyThrow(architectureA != String.Empty && architectureB != String.Empty, "We should never get an empty string passed to this method");
Microsoft.Build.Tasks.Core (31)
ErrorUtilities.cs (31)
19/// <inheritdoc cref="FrameworkErrorUtilities.DebugTraceMessage(string, string)"/> 21=> FrameworkErrorUtilities.DebugTraceMessage(category, message); 23/// <inheritdoc cref="FrameworkErrorUtilities.DebugTraceMessage(string, ref FrameworkErrorUtilities.DebugTraceInterpolatedStringHandler)"/> 24public static void DebugTraceMessage(string category, ref FrameworkErrorUtilities.DebugTraceInterpolatedStringHandler handler) 25=> FrameworkErrorUtilities.DebugTraceMessage(category, ref handler); 27/// <inheritdoc cref="FrameworkErrorUtilities.ThrowInternalError(string)"/> 30=> FrameworkErrorUtilities.ThrowInternalError(message); 32/// <inheritdoc cref="FrameworkErrorUtilities.ThrowInternalError(ref UnconditionalInterpolatedStringHandler)"/> 35=> FrameworkErrorUtilities.ThrowInternalError(ref handler); 37/// <inheritdoc cref="FrameworkErrorUtilities.ThrowInternalError(string, Exception)"/> 40=> FrameworkErrorUtilities.ThrowInternalError(message, innerException); 42/// <inheritdoc cref="FrameworkErrorUtilities.ThrowInternalError(ref UnconditionalInterpolatedStringHandler, Exception)"/> 45=> FrameworkErrorUtilities.ThrowInternalError(ref handler, innerException); 47/// <inheritdoc cref="FrameworkErrorUtilities.ThrowInternalErrorUnreachable()"/> 50=> FrameworkErrorUtilities.ThrowInternalErrorUnreachable(); 52/// <inheritdoc cref="FrameworkErrorUtilities.VerifyThrowInternalErrorUnreachable(bool)"/> 54=> FrameworkErrorUtilities.VerifyThrowInternalErrorUnreachable(condition); 72/// <inheritdoc cref="FrameworkErrorUtilities.VerifyThrowInternalNull(object?, string?)"/> 76=> FrameworkErrorUtilities.VerifyThrowInternalNull(parameter, parameterName); 92/// <inheritdoc cref="FrameworkErrorUtilities.VerifyThrowInternalLength(string?, string?)"/> 96=> FrameworkErrorUtilities.VerifyThrowInternalLength(parameterValue, parameterName); 101=> FrameworkErrorUtilities.VerifyThrowInternalLength(parameterValue, parameterName); 103/// <inheritdoc cref="FrameworkErrorUtilities.VerifyThrowInternalRooted(string)"/> 105=> FrameworkErrorUtilities.VerifyThrowInternalRooted(value); 107/// <inheritdoc cref="FrameworkErrorUtilities.VerifyThrow(bool, string)"/> 109=> FrameworkErrorUtilities.VerifyThrow(condition, message); 111/// <inheritdoc cref="FrameworkErrorUtilities.VerifyThrow(bool, ref FrameworkErrorUtilities.IsTrueInterpolatedStringHandler)"/> 114[InterpolatedStringHandlerArgument(nameof(condition))] ref FrameworkErrorUtilities.IsTrueInterpolatedStringHandler handler) 115=> FrameworkErrorUtilities.VerifyThrow(condition, ref handler);
Microsoft.Build.Utilities.Core (31)
ErrorUtilities.cs (31)
19/// <inheritdoc cref="FrameworkErrorUtilities.DebugTraceMessage(string, string)"/> 21=> FrameworkErrorUtilities.DebugTraceMessage(category, message); 23/// <inheritdoc cref="FrameworkErrorUtilities.DebugTraceMessage(string, ref FrameworkErrorUtilities.DebugTraceInterpolatedStringHandler)"/> 24public static void DebugTraceMessage(string category, ref FrameworkErrorUtilities.DebugTraceInterpolatedStringHandler handler) 25=> FrameworkErrorUtilities.DebugTraceMessage(category, ref handler); 27/// <inheritdoc cref="FrameworkErrorUtilities.ThrowInternalError(string)"/> 30=> FrameworkErrorUtilities.ThrowInternalError(message); 32/// <inheritdoc cref="FrameworkErrorUtilities.ThrowInternalError(ref UnconditionalInterpolatedStringHandler)"/> 35=> FrameworkErrorUtilities.ThrowInternalError(ref handler); 37/// <inheritdoc cref="FrameworkErrorUtilities.ThrowInternalError(string, Exception)"/> 40=> FrameworkErrorUtilities.ThrowInternalError(message, innerException); 42/// <inheritdoc cref="FrameworkErrorUtilities.ThrowInternalError(ref UnconditionalInterpolatedStringHandler, Exception)"/> 45=> FrameworkErrorUtilities.ThrowInternalError(ref handler, innerException); 47/// <inheritdoc cref="FrameworkErrorUtilities.ThrowInternalErrorUnreachable()"/> 50=> FrameworkErrorUtilities.ThrowInternalErrorUnreachable(); 52/// <inheritdoc cref="FrameworkErrorUtilities.VerifyThrowInternalErrorUnreachable(bool)"/> 54=> FrameworkErrorUtilities.VerifyThrowInternalErrorUnreachable(condition); 72/// <inheritdoc cref="FrameworkErrorUtilities.VerifyThrowInternalNull(object?, string?)"/> 76=> FrameworkErrorUtilities.VerifyThrowInternalNull(parameter, parameterName); 92/// <inheritdoc cref="FrameworkErrorUtilities.VerifyThrowInternalLength(string?, string?)"/> 96=> FrameworkErrorUtilities.VerifyThrowInternalLength(parameterValue, parameterName); 101=> FrameworkErrorUtilities.VerifyThrowInternalLength(parameterValue, parameterName); 103/// <inheritdoc cref="FrameworkErrorUtilities.VerifyThrowInternalRooted(string)"/> 105=> FrameworkErrorUtilities.VerifyThrowInternalRooted(value); 107/// <inheritdoc cref="FrameworkErrorUtilities.VerifyThrow(bool, string)"/> 109=> FrameworkErrorUtilities.VerifyThrow(condition, message); 111/// <inheritdoc cref="FrameworkErrorUtilities.VerifyThrow(bool, ref FrameworkErrorUtilities.IsTrueInterpolatedStringHandler)"/> 114[InterpolatedStringHandlerArgument(nameof(condition))] ref FrameworkErrorUtilities.IsTrueInterpolatedStringHandler handler) 115=> FrameworkErrorUtilities.VerifyThrow(condition, ref handler);
MSBuild (16)
ErrorUtilities.cs (16)
21=> FrameworkErrorUtilities.DebugTraceMessage(category, message); 24public static void DebugTraceMessage(string category, ref FrameworkErrorUtilities.DebugTraceInterpolatedStringHandler handler) 25=> FrameworkErrorUtilities.DebugTraceMessage(category, ref handler); 30=> FrameworkErrorUtilities.ThrowInternalError(message); 35=> FrameworkErrorUtilities.ThrowInternalError(ref handler); 40=> FrameworkErrorUtilities.ThrowInternalError(message, innerException); 45=> FrameworkErrorUtilities.ThrowInternalError(ref handler, innerException); 50=> FrameworkErrorUtilities.ThrowInternalErrorUnreachable(); 54=> FrameworkErrorUtilities.VerifyThrowInternalErrorUnreachable(condition); 76=> FrameworkErrorUtilities.VerifyThrowInternalNull(parameter, parameterName); 96=> FrameworkErrorUtilities.VerifyThrowInternalLength(parameterValue, parameterName); 101=> FrameworkErrorUtilities.VerifyThrowInternalLength(parameterValue, parameterName); 105=> FrameworkErrorUtilities.VerifyThrowInternalRooted(value); 109=> FrameworkErrorUtilities.VerifyThrow(condition, message); 114[InterpolatedStringHandlerArgument(nameof(condition))] ref FrameworkErrorUtilities.IsTrueInterpolatedStringHandler handler) 115=> FrameworkErrorUtilities.VerifyThrow(condition, ref handler);