Class GuardClauseException
Namespace: AutoFixture.Idioms
Assembly: AutoFixture.Idioms.dll
Represents an error about a missing Guard Clause.
public class GuardClauseException : Exception, ISerializableInheritance
object ← Exception ← GuardClauseException
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
GuardClauseException()
Initializes a new instance of the GuardClauseException class.
public GuardClauseException()GuardClauseException(string)
Initializes a new instance of the GuardClauseException class.
public GuardClauseException(string message)Parameters
message string
The error message that explains the reason for the exception.
GuardClauseException(string, Exception)
Initializes a new instance of the GuardClauseException class.
public GuardClauseException(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.
GuardClauseException(SerializationInfo, StreamingContext)
Initializes a new instance of the GuardClauseException class.
protected GuardClauseException(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.