Class OrphanedHandlerException
- Namespace
- Savvyio.Handlers
- Assembly
- Savvyio.Core.dll
The exception that is thrown when an IHandler<TRequest> implementation cannot be resolved.
public class OrphanedHandlerException : ArgumentException, ISerializable
- Inheritance
-
ObjectExceptionSystemExceptionArgumentExceptionOrphanedHandlerException
- Implements
-
ISerializable
- Inherited Members
-
ArgumentException.ThrowIfNullOrEmpty(String, String)ArgumentException.ThrowIfNullOrWhiteSpace(String, String)ArgumentException.MessageArgumentException.ParamNameException.GetBaseException()Exception.GetType()Exception.ToString()Exception.DataException.HelpLinkException.HResultException.InnerExceptionException.SourceException.StackTraceException.TargetSiteException.SerializeObjectState
Constructors
OrphanedHandlerException(String, String)
Initializes a new instance of the OrphanedHandlerException class.
public OrphanedHandlerException(string message, string paramName)
Parameters
message
StringThe error message that explains the reason for the exception.
paramName
StringThe 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
request
TRequestThe model that is being handled by a registered delegate.
paramName
StringThe 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
TRequest
The type of the input model registered to a handler.
THandler
The type of the handler to locate the input model.
See Also
ArgumentException