Class TypeArgumentException
The exception that is thrown when one of the type arguments provided to a method is not valid.
Implements
Inherited Members
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
[Serializable]
public class TypeArgumentException : ArgumentException, ISerializable
Constructors
| Improve this Doc View SourceTypeArgumentException()
Initializes a new instance of the TypeArgumentException class.
Declaration
public TypeArgumentException()
TypeArgumentException(SerializationInfo, StreamingContext)
Initializes a new instance of the TypeArgumentException class.
Declaration
protected TypeArgumentException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | The object that holds the serialized object data. |
StreamingContext | context | The contextual information about the source or destination. |
TypeArgumentException(String)
Initializes a new instance of the TypeArgumentException class.
Declaration
public TypeArgumentException(string typeParamName)
Parameters
Type | Name | Description |
---|---|---|
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 |
---|---|---|
String | message | The message that describes the error. |
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 |
---|---|---|
String | typeParamName | The name of the type parameter that caused the exception. |
String | message | The message that describes the error. |