Class ConstructorInitializedMemberException
Namespace: AutoFixture.Idioms
Assembly: AutoFixture.Idioms.dll
Represents a verification error when testing whether a read-only property is correctly implemented.
public class ConstructorInitializedMemberException : Exception, ISerializableInheritance
object ← Exception ← ConstructorInitializedMemberException
Implements
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
ConstructorInitializedMemberException(ConstructorInfo, ParameterInfo)
Initializes a new instance of the ConstructorInitializedMemberException class.
public ConstructorInitializedMemberException(ConstructorInfo constructorInfo, ParameterInfo missingParameter)Parameters
constructorInfo ConstructorInfo
The Constructor.
missingParameter ParameterInfo
The parameter that was not exposed as a field or property.
ConstructorInitializedMemberException(ConstructorInfo, ParameterInfo, string)
Initializes a new instance of the ConstructorInitializedMemberException class.
public ConstructorInitializedMemberException(ConstructorInfo constructorInfo, ParameterInfo missingParameter, string message)Parameters
constructorInfo ConstructorInfo
The Constructor.
missingParameter ParameterInfo
The parameter that was not exposed as a field or property.
message string
The error message that explains the reason for the exception.
ConstructorInitializedMemberException(ConstructorInfo, ParameterInfo, string, Exception)
Initializes a new instance of the ConstructorInitializedMemberException class.
public ConstructorInitializedMemberException(ConstructorInfo constructorInfo, ParameterInfo missingParameter, string message, Exception innerException)Parameters
constructorInfo ConstructorInfo
The Constructor.
missingParameter ParameterInfo
The parameter that was not exposed as a field or property.
message string
The error message that explains the reason for the exception.
innerException Exception
The exception that is the cause of the current exception.
ConstructorInitializedMemberException(FieldInfo)
Initializes a new instance of the ConstructorInitializedMemberException class.
public ConstructorInitializedMemberException(FieldInfo fieldInfo)Parameters
fieldInfo FieldInfo
The field.
ConstructorInitializedMemberException(FieldInfo, string)
Initializes a new instance of the ConstructorInitializedMemberException class.
public ConstructorInitializedMemberException(FieldInfo fieldInfo, string message)Parameters
fieldInfo FieldInfo
The field.
message string
The error message that explains the reason for the exception.
ConstructorInitializedMemberException(FieldInfo, string, Exception)
Initializes a new instance of the ConstructorInitializedMemberException class.
public ConstructorInitializedMemberException(FieldInfo fieldInfo, string message, Exception innerException)Parameters
fieldInfo FieldInfo
The field.
message string
The error message that explains the reason for the exception.
innerException Exception
The exception that is the cause of the current exception.
ConstructorInitializedMemberException(PropertyInfo)
Initializes a new instance of the ConstructorInitializedMemberException class.
public ConstructorInitializedMemberException(PropertyInfo propertyInfo)Parameters
propertyInfo PropertyInfo
The property.
ConstructorInitializedMemberException(PropertyInfo, string)
Initializes a new instance of the ConstructorInitializedMemberException class.
public ConstructorInitializedMemberException(PropertyInfo propertyInfo, string message)Parameters
propertyInfo PropertyInfo
The property.
message string
The error message that explains the reason for the exception.
ConstructorInitializedMemberException(PropertyInfo, string, Exception)
Initializes a new instance of the ConstructorInitializedMemberException class.
public ConstructorInitializedMemberException(PropertyInfo propertyInfo, string message, Exception innerException)Parameters
propertyInfo PropertyInfo
The property.
message string
The error message that explains the reason for the exception.
innerException Exception
The exception that is the cause of the current exception.
ConstructorInitializedMemberException(SerializationInfo, StreamingContext)
Initializes a new instance of the ConstructorInitializedMemberException class with
serialized data.
protected ConstructorInitializedMemberException(SerializationInfo info, StreamingContext context)Parameters
info SerializationInfo
The SerializationInfo that holds the
serialized object data about the exception being thrown.
context StreamingContext
The StreamingContext that contains
contextual information about the source or destination.
Properties
ConstructorInfo
Gets the constructor which has a MissingParameter.
public ConstructorInfo ConstructorInfo { get; }Property Value
FieldInfo
Gets the property supplied via the constructor.
public FieldInfo FieldInfo { get; }Property Value
MemberInfo
Gets the property or field supplied via the constructor.
public MemberInfo MemberInfo { get; }Property Value
MissingParameter
Gets the parameter that was not exposed as a field or property.
public ParameterInfo MissingParameter { get; }Property Value
PropertyInfo
Gets the property supplied via the constructor.
public PropertyInfo PropertyInfo { get; }Property Value
Methods
GetObjectData(SerializationInfo, StreamingContext)
Adds PropertyInfo to a
SerializationInfo.
[SecurityCritical]
public override void GetObjectData(SerializationInfo info, StreamingContext context)Parameters
info SerializationInfo
The SerializationInfo that holds the
serialized object data about the exception being thrown.
context StreamingContext
The StreamingContext that contains
contextual information about the source or destination.