Class TypeArgumentsCannotBeInferredException

Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll

The exception that is thrown when AutoFixture is unable to infer the type parameters of a generic method from its arguments.

public class TypeArgumentsCannotBeInferredException : Exception, ISerializable

Inheritance

objectExceptionTypeArgumentsCannotBeInferredException

Implements

ISerializable

Inherited Members

Exception.GetBaseException(), Exception.ToString(), Exception.GetType(), Exception.TargetSite, Exception.Message, Exception.Data, Exception.InnerException, Exception.HelpLink, Exception.Source, Exception.HResult, Exception.StackTrace, Exception.SerializeObjectState, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

TypeArgumentsCannotBeInferredException()

Initializes a new instance of the TypeArgumentsCannotBeInferredException class.

public TypeArgumentsCannotBeInferredException()

TypeArgumentsCannotBeInferredException(MethodInfo)

Initializes a new instance of the TypeArgumentsCannotBeInferredException class from a MethodInfo.

public TypeArgumentsCannotBeInferredException(MethodInfo methodInfo)

Parameters

methodInfo MethodInfo

The MethodInfo that cannot have its type arguments inferred.

TypeArgumentsCannotBeInferredException(string)

Initializes a new instance of the TypeArgumentsCannotBeInferredException class with a custom Message.

public TypeArgumentsCannotBeInferredException(string message)

Parameters

message string

The error message that explains the reason for the exception.

TypeArgumentsCannotBeInferredException(string, Exception)

Initializes a new instance of the TypeArgumentsCannotBeInferredException class with a custom Message and InnerException.

public TypeArgumentsCannotBeInferredException(string message, Exception innerException)

Parameters

message string

The error message that explains the reason for the exception.

innerException Exception

The exception that is the cause of the current exception.