188 references to ThrowHelper
Microsoft.Build.Framework (188)
ArraySortHelper.cs (12)
39
ThrowHelper
.ThrowArgumentException_BadComparer(comparer);
43
ThrowHelper
.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_IComparerFailed, e);
56
ThrowHelper
.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_IComparerFailed, e);
72
ThrowHelper
.ThrowArgumentException_BadComparer(comparer);
76
ThrowHelper
.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_IComparerFailed, e);
328
ThrowHelper
.ThrowArgumentException_BadComparer(comparer);
332
ThrowHelper
.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_IComparerFailed, e);
353
ThrowHelper
.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_IComparerFailed, e);
679
ThrowHelper
.ThrowArgumentException_BadComparer(comparer);
683
ThrowHelper
.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_IComparerFailed, e);
934
ThrowHelper
.ThrowArgumentException_BadComparer(comparer);
938
ThrowHelper
.ThrowInvalidOperationException(ExceptionResource.InvalidOperation_IComparerFailed, e);
ImmutableSegmentedList`1.cs (4)
132
ThrowHelper
.ThrowArgumentOutOfRange_IndexException();
342
ThrowHelper
.ThrowArgumentOutOfRange_IndexException();
344
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.count);
555
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.comparison);
ImmutableSegmentedList`1+ValueBuilder.cs (4)
64
ThrowHelper
.ThrowArgumentOutOfRange_IndexException();
245
ThrowHelper
.ThrowArgumentOutOfRange_IndexException();
247
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.count);
311
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.comparison);
RoslynEnumerable.cs (1)
16
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.source);
SegmentedArray.cs (19)
47
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.destinationArray);
133
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.destinationArray);
184
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
186
ThrowHelper
.ThrowLengthArgumentOutOfRange_ArgumentOutOfRange_NeedNonNegNum();
188
ThrowHelper
.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen);
212
ThrowHelper
.ThrowStartIndexArgumentOutOfRange_ArgumentOutOfRange_Index();
217
ThrowHelper
.ThrowCountArgumentOutOfRange_ArgumentOutOfRange_Count();
281
ThrowHelper
.ThrowStartIndexArgumentOutOfRange_ArgumentOutOfRange_Index();
287
ThrowHelper
.ThrowCountArgumentOutOfRange_ArgumentOutOfRange_Count();
296
ThrowHelper
.ThrowStartIndexArgumentOutOfRange_ArgumentOutOfRange_Index();
302
ThrowHelper
.ThrowCountArgumentOutOfRange_ArgumentOutOfRange_Count();
335
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
337
ThrowHelper
.ThrowLengthArgumentOutOfRange_ArgumentOutOfRange_NeedNonNegNum();
339
ThrowHelper
.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen);
378
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
380
ThrowHelper
.ThrowLengthArgumentOutOfRange_ArgumentOutOfRange_NeedNonNegNum();
382
ThrowHelper
.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen);
395
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.comparison);
664
ThrowHelper
.ThrowArgumentOutOfRangeException();
SegmentedArraySegment`1.cs (3)
25
ThrowHelper
.ThrowIndexOutOfRangeException();
34
ThrowHelper
.ThrowArgumentOutOfRangeException();
47
ThrowHelper
.ThrowArgumentOutOfRangeException();
SegmentedDictionary`2.cs (78)
81
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity);
110
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.dictionary);
148
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.collection);
189
ThrowHelper
.ThrowKeyNotFoundException(key);
297
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.array);
302
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
307
ThrowHelper
.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall);
331
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.key);
443
ThrowHelper
.ThrowInvalidOperationException_ConcurrentOperationsNotSupported();
472
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.key);
515
ThrowHelper
.ThrowAddingDuplicateWithKeyArgumentException(key);
528
ThrowHelper
.ThrowInvalidOperationException_ConcurrentOperationsNotSupported();
557
ThrowHelper
.ThrowAddingDuplicateWithKeyArgumentException(key);
570
ThrowHelper
.ThrowInvalidOperationException_ConcurrentOperationsNotSupported();
596
ThrowHelper
.ThrowAddingDuplicateWithKeyArgumentException(key);
609
ThrowHelper
.ThrowInvalidOperationException_ConcurrentOperationsNotSupported();
682
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.key);
739
ThrowHelper
.ThrowInvalidOperationException_ConcurrentOperationsNotSupported();
754
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.key);
813
ThrowHelper
.ThrowInvalidOperationException_ConcurrentOperationsNotSupported();
849
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.array);
854
ThrowHelper
.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported);
859
ThrowHelper
.ThrowArgumentException(ExceptionResource.Arg_NonZeroLowerBound);
864
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
869
ThrowHelper
.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall);
892
ThrowHelper
.ThrowArgumentException_Argument_InvalidArrayType();
909
ThrowHelper
.ThrowArgumentException_Argument_InvalidArrayType();
924
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity);
971
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity);
1036
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.key);
1038
ThrowHelper
.IfNullAndNullsAreIllegalThenThrow<TValue>(value, ExceptionArgument.value);
1049
ThrowHelper
.ThrowWrongValueTypeArgumentException(value, typeof(TValue));
1054
ThrowHelper
.ThrowWrongKeyTypeArgumentException(key, typeof(TKey));
1063
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.key);
1072
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.key);
1074
ThrowHelper
.IfNullAndNullsAreIllegalThenThrow<TValue>(value, ExceptionArgument.value);
1086
ThrowHelper
.ThrowWrongValueTypeArgumentException(value, typeof(TValue));
1091
ThrowHelper
.ThrowWrongKeyTypeArgumentException(key, typeof(TKey));
1160
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion();
1193
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumOpCantHappen();
1209
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion();
1222
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumOpCantHappen();
1235
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumOpCantHappen();
1248
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumOpCantHappen();
1266
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.dictionary);
1279
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.array);
1284
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
1289
ThrowHelper
.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall);
1306
=>
ThrowHelper
.ThrowNotSupportedException(ExceptionResource.NotSupported_KeyCollectionSet);
1309
=>
ThrowHelper
.ThrowNotSupportedException(ExceptionResource.NotSupported_KeyCollectionSet);
1316
ThrowHelper
.ThrowNotSupportedException(ExceptionResource.NotSupported_KeyCollectionSet);
1330
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.array);
1335
ThrowHelper
.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported);
1340
ThrowHelper
.ThrowArgumentException(ExceptionResource.Arg_NonZeroLowerBound);
1345
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
1350
ThrowHelper
.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall);
1362
ThrowHelper
.ThrowArgumentException_Argument_InvalidArrayType();
1377
ThrowHelper
.ThrowArgumentException_Argument_InvalidArrayType();
1409
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion();
1436
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumOpCantHappen();
1447
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion();
1466
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.dictionary);
1479
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.array);
1484
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
1489
ThrowHelper
.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall);
1506
=>
ThrowHelper
.ThrowNotSupportedException(ExceptionResource.NotSupported_ValueCollectionSet);
1510
ThrowHelper
.ThrowNotSupportedException(ExceptionResource.NotSupported_ValueCollectionSet);
1515
=>
ThrowHelper
.ThrowNotSupportedException(ExceptionResource.NotSupported_ValueCollectionSet);
1530
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.array);
1535
ThrowHelper
.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported);
1540
ThrowHelper
.ThrowArgumentException(ExceptionResource.Arg_NonZeroLowerBound);
1545
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
1550
ThrowHelper
.ThrowArgumentException(ExceptionResource.Arg_ArrayPlusOffTooSmall);
1562
ThrowHelper
.ThrowArgumentException_Argument_InvalidArrayType();
1577
ThrowHelper
.ThrowArgumentException_Argument_InvalidArrayType();
1609
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion();
1635
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumOpCantHappen();
1646
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion();
SegmentedList`1.cs (66)
59
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
74
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.collection);
129
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.value, ExceptionResource.ArgumentOutOfRange_SmallCapacity);
175
ThrowHelper
.ThrowArgumentOutOfRange_IndexException();
184
ThrowHelper
.ThrowArgumentOutOfRange_IndexException();
203
ThrowHelper
.IfNullAndNullsAreIllegalThenThrow<T>(value, ExceptionArgument.value);
211
ThrowHelper
.ThrowWrongValueTypeArgumentException(value, typeof(T));
249
ThrowHelper
.IfNullAndNullsAreIllegalThenThrow<T>(item, ExceptionArgument.item);
257
ThrowHelper
.ThrowWrongValueTypeArgumentException(item, typeof(T));
296
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
298
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
300
ThrowHelper
.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen);
362
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.converter);
385
ThrowHelper
.ThrowArgumentException(ExceptionResource.Arg_RankMultiDimNotSupported);
395
ThrowHelper
.ThrowArgumentException_Argument_InvalidArrayType();
407
ThrowHelper
.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen);
447
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.match);
464
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.match);
488
ThrowHelper
.ThrowStartIndexArgumentOutOfRange_ArgumentOutOfRange_Index();
493
ThrowHelper
.ThrowCountArgumentOutOfRange_ArgumentOutOfRange_Count();
498
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.match);
514
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.match);
537
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.match);
545
ThrowHelper
.ThrowStartIndexArgumentOutOfRange_ArgumentOutOfRange_Index();
553
ThrowHelper
.ThrowStartIndexArgumentOutOfRange_ArgumentOutOfRange_Index();
560
ThrowHelper
.ThrowCountArgumentOutOfRange_ArgumentOutOfRange_Count();
578
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.action);
593
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion();
614
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
619
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
624
ThrowHelper
.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen);
665
ThrowHelper
.ThrowArgumentOutOfRange_IndexException();
681
ThrowHelper
.ThrowArgumentOutOfRange_IndexException();
684
ThrowHelper
.ThrowCountArgumentOutOfRange_ArgumentOutOfRange_Count();
692
ThrowHelper
.ThrowArgumentOutOfRange_IndexException();
695
ThrowHelper
.ThrowCountArgumentOutOfRange_ArgumentOutOfRange_Count();
709
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_ListInsert);
724
ThrowHelper
.IfNullAndNullsAreIllegalThenThrow<T>(item, ExceptionArgument.item);
732
ThrowHelper
.ThrowWrongValueTypeArgumentException(item, typeof(T));
745
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.collection);
750
ThrowHelper
.ThrowArgumentOutOfRange_IndexException();
833
ThrowHelper
.ThrowArgumentOutOfRange_IndexException();
856
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
861
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
866
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_BiggerThanCollection);
871
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_BiggerThanCollection);
887
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
892
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
897
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_BiggerThanCollection);
902
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_BiggerThanCollection);
936
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.match);
980
ThrowHelper
.ThrowArgumentOutOfRange_IndexException();
1001
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
1006
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
1010
ThrowHelper
.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen);
1043
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
1048
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
1052
ThrowHelper
.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen);
1083
ThrowHelper
.ThrowIndexArgumentOutOfRange_NeedNonNegNumException();
1088
ThrowHelper
.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
1092
ThrowHelper
.ThrowArgumentException(ExceptionResource.Argument_InvalidOffLen);
1105
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.comparison);
1151
ThrowHelper
.ThrowArgumentNullException(ExceptionArgument.match);
1200
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion();
1216
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumOpCantHappen();
1226
ThrowHelper
.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion();
ThrowHelper.cs (1)
231
ThrowHelper
.ThrowArgumentNullException(argName);