Table of Contents

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

requestType Type

Request type.

expectedType Type

Expected type.

Properties

ExpectedType

Expected type.

public Type ExpectedType { get; }

Property Value

Type

RequestType

Request type.

public Type RequestType { get; }

Property Value

Type