Class WritablePropertyException
Namespace: AutoFixture.Idioms
Assembly: AutoFixture.Idioms.dll
Represents a verification error when testing whether a writable property is correctly implemented.
public class WritablePropertyException : Exception, ISerializableInheritance
object ← Exception ← WritablePropertyException
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
WritablePropertyException(PropertyInfo)
Initializes a new instance of the WritablePropertyException class.
public WritablePropertyException(PropertyInfo propertyInfo)Parameters
propertyInfo PropertyInfo
The property.
WritablePropertyException(PropertyInfo, string)
Initializes a new instance of the WritablePropertyException class.
public WritablePropertyException(PropertyInfo propertyInfo, string message)Parameters
propertyInfo PropertyInfo
The property.
message string
The error message that explains the reason for the exception.
WritablePropertyException(PropertyInfo, string, Exception)
Initializes a new instance of the WritablePropertyException class.
public WritablePropertyException(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.
Properties
PropertyInfo
Gets the property supplied via the constructor.
<remarks>
Notice, value might null after deserialization on platforms that don't support PropertyInfo serialization.
</remarks>
public PropertyInfo PropertyInfo { get; }