Table of Contents

Class DuplicateHandlerKeyException

Namespace
CarrotMQ.Core.Configuration
Assembly
CarrotMQ.Core.dll

Exception thrown when a duplicate handler key is detected during handler registration.

public sealed class DuplicateHandlerKeyException : Exception, ISerializable
Inheritance
DuplicateHandlerKeyException
Implements
Inherited Members

Methods

CreateCommandHandlerException<TCommandHandler, TCommand, TResponse>(string)

Creates a DuplicateHandlerKeyException for a command handler registration issue.

public static DuplicateHandlerKeyException CreateCommandHandlerException<TCommandHandler, TCommand, TResponse>(string handlerKey) where TCommandHandler : CommandHandlerBase<TCommand, TResponse> where TCommand : _ICommand<TCommand, TResponse> where TResponse : class

Parameters

handlerKey string

The handler key causing the registration issue.

Returns

DuplicateHandlerKeyException

An instance of DuplicateHandlerKeyException.

Type Parameters

TCommandHandler

Type of the command handler.

TCommand

Type of the command.

TResponse

Type of the response.

CreateEventHandlerException<TEventHandler, TEvent>(string)

Creates a DuplicateHandlerKeyException for an event handler registration issue.

public static DuplicateHandlerKeyException CreateEventHandlerException<TEventHandler, TEvent>(string handlerKey) where TEventHandler : EventHandlerBase<TEvent> where TEvent : _IMessage<TEvent, NoResponse>

Parameters

handlerKey string

The handler key causing the registration issue.

Returns

DuplicateHandlerKeyException

An instance of DuplicateHandlerKeyException.

Type Parameters

TEventHandler

Type of the event handler.

TEvent

Type of the event.

CreateQueryHandlerException<TQueryHandler, TQuery, TResponse>(string)

Creates a DuplicateHandlerKeyException for a query handler registration issue.

public static DuplicateHandlerKeyException CreateQueryHandlerException<TQueryHandler, TQuery, TResponse>(string handlerKey) where TQueryHandler : QueryHandlerBase<TQuery, TResponse> where TQuery : _IQuery<TQuery, TResponse> where TResponse : class

Parameters

handlerKey string

The handler key causing the registration issue.

Returns

DuplicateHandlerKeyException

An instance of DuplicateHandlerKeyException.

Type Parameters

TQueryHandler

Type of the query handler.

TQuery

Type of the query.

TResponse

Type of the response.

CreateResponseHandlerException<TResponseHandler, TRequest, TResponse>(string)

Creates a DuplicateHandlerKeyException for a response handler registration issue.

public static DuplicateHandlerKeyException CreateResponseHandlerException<TResponseHandler, TRequest, TResponse>(string handlerKey) where TResponseHandler : ResponseHandlerBase<TRequest, TResponse> where TRequest : _IRequest<TRequest, TResponse> where TResponse : class

Parameters

handlerKey string

The handler key causing the registration issue.

Returns

DuplicateHandlerKeyException

An instance of DuplicateHandlerKeyException.

Type Parameters

TResponseHandler

Type of the response handler.

TRequest

Type of the request.

TResponse

Type of the response.