Class OrphanedHandlerException
The exception that is thrown when an IHandler<TRequest> implementation cannot be resolved.
public class OrphanedHandlerException : ArgumentException, ISerializable
- Inheritance
-
objectOrphanedHandlerException
- Implements
- Inherited Members
Constructors
OrphanedHandlerException(string, string)
Initializes a new instance of the OrphanedHandlerException class.
public OrphanedHandlerException(string message, string paramName)
Parameters
messagestringThe error message that explains the reason for the exception.
paramNamestringThe name of the parameter that caused the current exception.
Methods
Create<TRequest, THandler>(TRequest, string)
Creates a new instance of OrphanedHandlerException using the provided generic type arguments.
public static OrphanedHandlerException Create<TRequest, THandler>(TRequest request, string paramName) where TRequest : IRequest where THandler : IHandler<TRequest>
Parameters
requestTRequestThe model that is being handled by a registered delegate.
paramNamestringThe name of the parameter that caused the current exception.
Returns
- OrphanedHandlerException
A new instance of OrphanedHandlerException initialized from the provided generic type arguments.
Type Parameters
TRequestThe type of the input model registered to a handler.
THandlerThe type of the handler to locate the input model.