Table of Contents

TypeArgumentException Constructor

Definition

Namespace
Cuemon
Assemblies
Cuemon.Kernel.dll
Source
src/Cuemon.Kernel/TypeArgumentException.cs

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, 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.

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.