Table of Contents

Create Method

Definition

Namespace
Savvyio.Handlers
Assemblies
Savvyio.Core.dll
Source
src/Savvyio.Core/Handlers/OrphanedHandlerException.cs

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.