Class IllegalRequestException

Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll

Indicates that an illegal request was detected.

public class IllegalRequestException : Exception, ISerializable

Inheritance

objectExceptionIllegalRequestException

Implements

ISerializable

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()

Remarks

Certain requests are considered illegal (such as `IntPtr`) because satisfying them can crash the process.

Constructors

IllegalRequestException()

Initializes a new instance of the IllegalRequestException class.

public IllegalRequestException()

IllegalRequestException(string)

Initializes a new instance of the IllegalRequestException class with an error message.

public IllegalRequestException(string message)

Parameters

message string

The error message.

IllegalRequestException(string, Exception)

Initializes a new instance of the IllegalRequestException class with an error message and an inner exception.

public IllegalRequestException(string message, Exception innerException)

Parameters

message string

The error message.

innerException Exception

The inner exception.

See Also

IntPtrGuard