Class InvalidRequestTypeException
- Namespace
- LfrlAnvil.Requests.Exceptions
- Assembly
- LfrlAnvil.Requests.dll
Represents an error due to invalid IRequest<TRequest, TResult> type.
public class InvalidRequestTypeException : InvalidCastException, ISerializable
- Inheritance
-
InvalidRequestTypeException
- Implements
- Inherited Members
Constructors
InvalidRequestTypeException(Type, Type)
Creates a new InvalidRequestTypeException exception.
public InvalidRequestTypeException(Type requestType, Type expectedType)
Parameters
Properties
ExpectedType
Expected type.
public Type ExpectedType { get; }
Property Value
RequestType
Request type.
public Type RequestType { get; }