Table of Contents

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
Object
Exception
SystemException
ArgumentException
OrphanedHandlerException
Implements
ISerializable
Inherited Members
ArgumentException.ThrowIfNullOrEmpty(String, String)
ArgumentException.ThrowIfNullOrWhiteSpace(String, String)
ArgumentException.Message
ArgumentException.ParamName
Exception.GetBaseException()
Exception.GetType()
Exception.ToString()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Source
Exception.StackTrace
Exception.TargetSite
Exception.SerializeObjectState

Constructors

OrphanedHandlerException(String, String)

Initializes a new instance of the OrphanedHandlerException class.

public OrphanedHandlerException(string message, string paramName)

Parameters

message String

The error message that explains the reason for the exception.

paramName String

The 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 TRequest

The model that is being handled by a registered delegate.

paramName String

The 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