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