Table of Contents

Class TypeArgumentException

Namespace
Cuemon
Assembly
Cuemon.Core.dll

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

public class TypeArgumentException : ArgumentException, ISerializable
Inheritance
Object
Exception
SystemException
ArgumentException
TypeArgumentException
Implements
ISerializable
Inherited Members
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

Constructors

TypeArgumentException()

Initializes a new instance of the TypeArgumentException class.

public TypeArgumentException()

TypeArgumentException(String)

Initializes a new instance of the TypeArgumentException class.

public TypeArgumentException(string typeParamName)

Parameters

typeParamName String

The name of the type parameter that caused the exception.

TypeArgumentException(String, Exception)

Initializes a new instance of the TypeArgumentException class.

public TypeArgumentException(string message, Exception innerException)

Parameters

message String

The message that describes the error.

innerException Exception

The exception that is the cause of the current exception. If the innerException parameter is not a null reference, the current exception is raised in a catch block that handles the inner exception.

TypeArgumentException(String, String)

Initializes a new instance of the TypeArgumentException class.

public TypeArgumentException(string typeParamName, string message)

Parameters

typeParamName String

The name of the type parameter that caused the exception.

message String

The message that describes the error.