17 references to ExceptionResource
Microsoft.Extensions.Primitives (17)
InplaceStringBuilder.cs (4)
53ThrowHelper.ThrowInvalidOperationException(ExceptionResource.Capacity_CannotChangeAfterWriteStarted); 121ThrowHelper.ThrowInvalidOperationException(ExceptionResource.Capacity_NotEnough, 1, Capacity - _offset); 138ThrowHelper.ThrowInvalidOperationException(ExceptionResource.Capacity_NotUsedEntirely, Capacity, _offset); 163ThrowHelper.ThrowInvalidOperationException(ExceptionResource.Capacity_NotEnough, value.Length, Capacity - _offset);
StringSegment.cs (2)
699return ThrowHelper.GetArgumentException(ExceptionResource.Argument_InvalidOffsetLength); 725return ThrowHelper.GetArgumentException(ExceptionResource.Argument_InvalidOffsetLengthStringSegment);
ThrowHelper.cs (11)
25internal static void ThrowArgumentException(ExceptionResource resource) 31internal static void ThrowInvalidOperationException(ExceptionResource resource) 37internal static void ThrowInvalidOperationException(ExceptionResource resource, params object[] args) 54internal static ArgumentException GetArgumentException(ExceptionResource resource) 59private static string GetResourceText(ExceptionResource resource) 61Debug.Assert(Enum.IsDefined(typeof(ExceptionResource), resource), 66case ExceptionResource.Argument_InvalidOffsetLength: return SR.Argument_InvalidOffsetLength; 67case ExceptionResource.Argument_InvalidOffsetLengthStringSegment: return SR.Argument_InvalidOffsetLengthStringSegment; 68case ExceptionResource.Capacity_CannotChangeAfterWriteStarted: return SR.Capacity_CannotChangeAfterWriteStarted; 69case ExceptionResource.Capacity_NotEnough: return SR.Capacity_NotEnough; 70case ExceptionResource.Capacity_NotUsedEntirely: return SR.Capacity_NotUsedEntirely;