| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- using System;
- using System.Diagnostics.CodeAnalysis;
- namespace NativeCollection
- {
- internal static class ThrowHelper
- {
- [DoesNotReturn]
- public static void StackInitialCapacityException()
- {
- throw new ArgumentOutOfRangeException();
- }
-
- [DoesNotReturn]
- public static void StackEmptyException()
- {
- throw new InvalidOperationException("Stack Empty");
- }
-
- [DoesNotReturn]
- public static void QueueEmptyException()
- {
- throw new InvalidOperationException("EmptyQueue");
- }
-
- [DoesNotReturn]
- public static void ListInitialCapacityException()
- {
- throw new ArgumentOutOfRangeException();
- }
-
- [DoesNotReturn]
- public static void IndexMustBeLessException()
- {
- throw new ArgumentOutOfRangeException("IndexMustBeLess");
- }
-
-
- [DoesNotReturn]
- public static void ListSmallCapacity()
- {
- throw new ArgumentOutOfRangeException("SmallCapacity");
- }
-
-
- [DoesNotReturn]
- public static void ListIndexOutOfRange()
- {
- throw new ArgumentOutOfRangeException("ListIndexOutOfRange");
- }
-
-
- [DoesNotReturn]
- public static void ConcurrentOperationsNotSupported()
- {
- throw new InvalidOperationException("ConcurrentOperationsNotSupported");
- }
-
- [DoesNotReturn]
- public static void HashSetCapacityOutOfRange()
- {
- throw new ArgumentOutOfRangeException("HashSetCapacityOutOfRange");
- }
-
- [DoesNotReturn]
- public static void HashSetEnumFailedVersion()
- {
- throw new InvalidOperationException("EnumFailedVersion");
- }
-
- [DoesNotReturn]
- public static void HashSetEnumOpCantHappen()
- {
- throw new InvalidOperationException("EnumOpCantHappen");
- }
- [DoesNotReturn]
- public static void SortedSetVersionChanged()
- {
- throw new InvalidOperationException("_version != _tree.version");
- }
- }
- }
|