13 references to ExceptionArgument
Interop.FunctionalTests (13)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
54MemoryPoolThrowHelper.ThrowObjectDisposedException(MemoryPoolThrowHelper.ExceptionArgument.MemoryPool);
src\Shared\Buffers.MemoryPool\DiagnosticPoolBlock.cs (4)
51MemoryPoolThrowHelper.ThrowObjectDisposedException(MemoryPoolThrowHelper.ExceptionArgument.MemoryPoolBlock); 108MemoryPoolThrowHelper.ThrowObjectDisposedException(MemoryPoolThrowHelper.ExceptionArgument.MemoryPoolBlock); 134MemoryPoolThrowHelper.ThrowObjectDisposedException(MemoryPoolThrowHelper.ExceptionArgument.MemoryPoolBlock); 172MemoryPoolThrowHelper.ThrowObjectDisposedException(MemoryPoolThrowHelper.ExceptionArgument.MemoryPoolBlock);
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (7)
23return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.offset)); 27return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.length)); 92public static void ThrowObjectDisposedException(ExceptionArgument argument) 100return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.size), $"Cannot allocate more than {maxSize} bytes in a single buffer"); 104private static ObjectDisposedException GetObjectDisposedException(ExceptionArgument argument) 109private static string GetArgumentName(ExceptionArgument argument) 111Debug.Assert(Enum.IsDefined(typeof(ExceptionArgument), argument), "The enum value is not defined, please check the ExceptionArgument Enum.");
src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (1)
95MemoryPoolThrowHelper.ThrowObjectDisposedException(MemoryPoolThrowHelper.ExceptionArgument.MemoryPool);