Class ObjectCreationException
Namespace: AutoFixture
Assembly: AutoFixture.dll
The exception that is thrown when AutoFixture is unable to create an object.
public class ObjectCreationException : Exception, ISerializableInheritance
object ← Exception ← ObjectCreationException
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
ObjectCreationException()
Initializes a new instance of the ObjectCreationException class with a
default Message.
public ObjectCreationException()ObjectCreationException(string)
Initializes a new instance of the ObjectCreationException class with a
custom Message.
public ObjectCreationException(string message)Parameters
message string
The error message that explains the reason for the exception.
ObjectCreationException(string, Exception)
Initializes a new instance of the ObjectCreationException class with a
custom Message and InnerException.
public ObjectCreationException(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.