Class IllegalRequestException
Indicates that an illegal request was detected.
Inheritance
Implements
Inherited Members
Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll
Syntax
[Serializable]
public class IllegalRequestException : Exception, _Exception, ISerializable
Remarks
Certain requests are considered illegal (such as System.IntPtr) because satisfying them can crash the process.
Constructors
| Improve this Doc View SourceIllegalRequestException()
Initializes a new instance of the IllegalRequestException class.
Declaration
public IllegalRequestException()
IllegalRequestException(SerializationInfo, StreamingContext)
Initializes a new instance of the IllegalRequestException class.
Declaration
protected IllegalRequestException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. |
System.Runtime.Serialization.StreamingContext | context | The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The |
System.Runtime.Serialization.SerializationException | The class name is null or System.Exception.HResult is zero (0). |
IllegalRequestException(String)
Initializes a new instance of the IllegalRequestException class with an error message.
Declaration
public IllegalRequestException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The error message. |
IllegalRequestException(String, Exception)
Initializes a new instance of the IllegalRequestException class with an error message and an inner exception.
Declaration
public IllegalRequestException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The error message. |
System.Exception | innerException | The inner exception. |