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.
WritablePropertyException(SerializationInfo, StreamingContext)
Initializes a new instance of the WritablePropertyException class with
serialized data.
protected WritablePropertyException(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
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; }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.