Class TypeArgumentException<T>
- Namespace
- AlgorithmsSW
- Assembly
- AlgorithmsSW.dll
Represents an exception that is thrown when a type argument is neither a reference type nor a nullable value type.
public class TypeArgumentException<T> : ArgumentException, ISerializable
Type Parameters
T
The type that caused the exception.
- Inheritance
-
TypeArgumentException<T>
- Implements
- Inherited Members
- Extension Methods
Constructors
TypeArgumentException()
Initializes a new instance of the TypeArgumentException<T> class.
public TypeArgumentException()
TypeArgumentException(string)
Initializes a new instance of the TypeArgumentException<T> class with a specified error message.
public TypeArgumentException(string message)
Parameters
message
stringThe error message that explains the reason for the exception.
TypeArgumentException(string, Exception)
Initializes a new instance of the TypeArgumentException<T> class with a specified error message and a reference to the inner exception that is the cause of this exception.
public TypeArgumentException(string message, Exception inner)
Parameters
message
stringThe error message that explains the reason for the exception.
inner
ExceptionThe exception that is the cause of the current exception, or a null reference if no inner exception is specified.
Properties
Type
Gets the type that caused the exception.
public Type Type { get; }