UNPKG

@nestjstools/messaging

Version:

Simplifies asynchronous and synchronous message handling with support for buses, handlers, channels, and consumers. Build scalable, decoupled applications with ease and reliability.

22 lines 778 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HandlerError = exports.HandlersException = void 0; const messaging_exception_1 = require("./messaging.exception"); class HandlersException extends messaging_exception_1.MessagingException { constructor(errors) { super(`Encountered [${errors.length}] error(s) during handler execution`); this.errors = errors; } } exports.HandlersException = HandlersException; class HandlerError { constructor(handler, error) { this.handler = handler; this.error = error; this.handler = handler; this.error = error; this.errorMessage = error.message; } } exports.HandlerError = HandlerError; //# sourceMappingURL=handlers.exception.js.map