Class TypeArgumentException
The exception that is thrown when one of the type arguments provided to a method is not valid.
Inheritance
System.Object
System.Exception
System.ArgumentException
TypeArgumentException
Inherited Members
System.ArgumentException.Message
System.ArgumentException.ParamName
System.Exception.GetBaseException()
System.Exception.ToString()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Source
System.Exception.StackTrace
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public class TypeArgumentException : ArgumentException
Constructors
| Improve this DocTypeArgumentException()
Initializes a new instance of the TypeArgumentException class.
Declaration
public TypeArgumentException()
TypeArgumentException(String)
Initializes a new instance of the TypeArgumentException class.
Declaration
public TypeArgumentException(string typeParamName)
Parameters
Type | Name | Description |
---|---|---|
System.String | typeParamName | The name of the type parameter that caused the exception. |
TypeArgumentException(String, Exception)
Initializes a new instance of the TypeArgumentException class.
Declaration
public TypeArgumentException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message that describes the error. |
System.Exception | innerException | 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.
Declaration
public TypeArgumentException(string typeParamName, string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | typeParamName | The name of the type parameter that caused the exception. |
System.String | message | The message that describes the error. |