79 references to ExceptionResource
Microsoft.CodeAnalysis.Collections.Package (79)
Internal\ArraySortHelper.cs (7)
45
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_IComparerFailed, e);
58
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_IComparerFailed, e);
78
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_IComparerFailed, e);
335
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_IComparerFailed, e);
356
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_IComparerFailed, e);
685
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_IComparerFailed, e);
938
ThrowHelper.ThrowInvalidOperationException(
ExceptionResource
.InvalidOperation_IComparerFailed, e);
Internal\ThrowHelper.cs (28)
63
ExceptionResource
.ArgumentOutOfRange_IndexMustBeLess);
70
ExceptionResource
.ArgumentOutOfRange_IndexMustBeLessOrEqual);
83
ExceptionResource
.ArgumentOutOfRange_NeedNonNegNum);
90
ExceptionResource
.ArgumentOutOfRange_NeedNonNegNum);
97
ExceptionResource
.ArgumentOutOfRange_IndexMustBeLessOrEqual);
104
ExceptionResource
.ArgumentOutOfRange_IndexMustBeLess);
111
ExceptionResource
.ArgumentOutOfRange_Count);
148
internal static void ThrowArgumentException(
ExceptionResource
resource)
171
internal static void ThrowArgumentOutOfRangeException(ExceptionArgument argument,
ExceptionResource
resource)
177
internal static void ThrowInvalidOperationException(
ExceptionResource
resource, Exception e)
183
internal static void ThrowNotSupportedException(
ExceptionResource
resource)
212
private static ArgumentException GetArgumentException(
ExceptionResource
resource)
232
private static ArgumentOutOfRangeException GetArgumentOutOfRangeException(ExceptionArgument argument,
ExceptionResource
resource)
296
private static string GetResourceString(
ExceptionResource
resource)
300
case
ExceptionResource
.ArgumentOutOfRange_IndexMustBeLessOrEqual:
302
case
ExceptionResource
.ArgumentOutOfRange_IndexMustBeLess:
304
case
ExceptionResource
.ArgumentOutOfRange_Count:
306
case
ExceptionResource
.Arg_ArrayPlusOffTooSmall:
308
case
ExceptionResource
.Arg_RankMultiDimNotSupported:
310
case
ExceptionResource
.Arg_NonZeroLowerBound:
312
case
ExceptionResource
.ArgumentOutOfRange_ListInsert:
314
case
ExceptionResource
.ArgumentOutOfRange_NeedNonNegNum:
316
case
ExceptionResource
.ArgumentOutOfRange_SmallCapacity:
318
case
ExceptionResource
.Argument_InvalidOffLen:
320
case
ExceptionResource
.ArgumentOutOfRange_BiggerThanCollection:
322
case
ExceptionResource
.NotSupported_KeyCollectionSet:
324
case
ExceptionResource
.NotSupported_ValueCollectionSet:
326
case
ExceptionResource
.InvalidOperation_IComparerFailed:
SegmentedArray.cs (3)
194
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_InvalidOffLen);
345
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_InvalidOffLen);
388
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_InvalidOffLen);
SegmentedDictionary`2.cs (18)
370
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_ArrayPlusOffTooSmall);
882
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_RankMultiDimNotSupported);
887
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_NonZeroLowerBound);
897
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_ArrayPlusOffTooSmall);
1325
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_ArrayPlusOffTooSmall);
1342
=> ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_KeyCollectionSet);
1345
=> ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_KeyCollectionSet);
1352
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_KeyCollectionSet);
1377
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_RankMultiDimNotSupported);
1382
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_NonZeroLowerBound);
1392
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_ArrayPlusOffTooSmall);
1533
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_ArrayPlusOffTooSmall);
1550
=> ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_ValueCollectionSet);
1554
ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_ValueCollectionSet);
1559
=> ThrowHelper.ThrowNotSupportedException(
ExceptionResource
.NotSupported_ValueCollectionSet);
1585
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_RankMultiDimNotSupported);
1590
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_NonZeroLowerBound);
1600
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_ArrayPlusOffTooSmall);
SegmentedHashSet`1.cs (1)
816
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_ArrayPlusOffTooSmall);
SegmentedList`1.cs (22)
61
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity,
ExceptionResource
.ArgumentOutOfRange_NeedNonNegNum);
131
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.value,
ExceptionResource
.ArgumentOutOfRange_SmallCapacity);
369
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count,
ExceptionResource
.ArgumentOutOfRange_NeedNonNegNum);
371
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_InvalidOffLen);
456
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Arg_RankMultiDimNotSupported);
478
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_InvalidOffLen);
502
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity,
ExceptionResource
.ArgumentOutOfRange_NeedNonNegNum);
754
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count,
ExceptionResource
.ArgumentOutOfRange_NeedNonNegNum);
759
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_InvalidOffLen);
858
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index,
ExceptionResource
.ArgumentOutOfRange_ListInsert);
1013
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count,
ExceptionResource
.ArgumentOutOfRange_NeedNonNegNum);
1018
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index,
ExceptionResource
.ArgumentOutOfRange_BiggerThanCollection);
1023
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count,
ExceptionResource
.ArgumentOutOfRange_BiggerThanCollection);
1044
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count,
ExceptionResource
.ArgumentOutOfRange_NeedNonNegNum);
1049
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index,
ExceptionResource
.ArgumentOutOfRange_BiggerThanCollection);
1054
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count,
ExceptionResource
.ArgumentOutOfRange_BiggerThanCollection);
1158
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count,
ExceptionResource
.ArgumentOutOfRange_NeedNonNegNum);
1162
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_InvalidOffLen);
1200
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count,
ExceptionResource
.ArgumentOutOfRange_NeedNonNegNum);
1204
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_InvalidOffLen);
1240
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count,
ExceptionResource
.ArgumentOutOfRange_NeedNonNegNum);
1244
ThrowHelper.ThrowArgumentException(
ExceptionResource
.Argument_InvalidOffLen);