class HandlerNotFoundError
extends Error
Since 0.1.0

Thrown by CommandBus.execute and QueryBus.execute when no handler is registered for the request's type.

Constructors

HandlerNotFoundError(requestType: string)

Creates a new error.

Parameters
requestType: string

The request type name

Properties

readonly
requestType: string

The request type that had no handler.

Usage

import { HandlerNotFoundError } from "cqrs-plugin/src/index.ts";