Show / Hide Table of Contents

Class GenericArgumentException<T>

The exception that is thrown when one of the generic arguments provided to a type is not valid.

Inheritance
object
Exception
SystemException
ArgumentException
GenericArgumentException
GenericArgumentException<T>
Implements
ISerializable
Inherited Members
GenericArgumentException.Argument
ArgumentException.ThrowIfNullOrEmpty(string, string)
ArgumentException.ThrowIfNullOrWhiteSpace(string, string)
ArgumentException.Message
ArgumentException.ParamName
Exception.GetBaseException()
Exception.GetType()
Exception.ToString()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Source
Exception.StackTrace
Exception.TargetSite
Exception.SerializeObjectState
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: DotNext
Assembly: DotNext.dll
Syntax
public class GenericArgumentException<T> : GenericArgumentException, ISerializable
Type Parameters
Name Description
T

Captured generic argument treated as invalid.

Remarks

Initializes a new exception.

Constructors

| Edit this page View Source

GenericArgumentException(string, string?)

The exception that is thrown when one of the generic arguments provided to a type is not valid.

Declaration
public GenericArgumentException(string message, string? paramName = null)
Parameters
Type Name Description
string message

The error message that explains the reason for the exception.

string paramName

The name of generic parameter.

Remarks

Initializes a new exception.

Implements

ISerializable

Extension Methods

BasicExtensions.As<T>(T)
BasicExtensions.GetUserData<T>(T)
BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, ReadOnlySpan<T>)
ExpressionBuilder.Const<T>(T)
AsyncLockAcquisition.AcquireLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireLockAsync<T>(T, TimeSpan, CancellationToken)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, TimeSpan, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, bool, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, bool, TimeSpan, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, TimeSpan, CancellationToken)
LockAcquisition.AcquireReadLock<T>(T)
LockAcquisition.AcquireReadLock<T>(T, TimeSpan)
LockAcquisition.AcquireUpgradeableReadLock<T>(T)
LockAcquisition.AcquireUpgradeableReadLock<T>(T, TimeSpan)
LockAcquisition.AcquireWriteLock<T>(T)
LockAcquisition.AcquireWriteLock<T>(T, TimeSpan)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾