UNPKG

@dolittle/sdk.projections

Version:

Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.

21 lines 1.45 kB
"use strict"; // Copyright (c) Dolittle. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. Object.defineProperty(exports, "__esModule", { value: true }); exports.MissingOnMethodForType = void 0; const rudiments_1 = require("@dolittle/rudiments"); /** * Exception that is thrown when there is no on() method for a specific event type on a projection. */ class MissingOnMethodForType extends rudiments_1.Exception { /** * Initialises a new instance of the {@link MissingOnMethodForType} class. * @param {ProjectionId} projectionId - The projection that is missing the on() method. * @param {EventType} eventType - The event type that the method is missing for. */ constructor(projectionId, eventType) { super(`Missing on() method for ${eventType} in projection ${projectionId}`); } } exports.MissingOnMethodForType = MissingOnMethodForType; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlzc2luZ09uTWV0aG9kRm9yVHlwZS5qcyIsInNvdXJjZVJvb3QiOiIuLi8iLCJzb3VyY2VzIjpbIk1pc3NpbmdPbk1ldGhvZEZvclR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLCtDQUErQztBQUMvQyxxR0FBcUc7OztBQUVyRyxtREFBZ0Q7QUFLaEQ7O0dBRUc7QUFDSCxNQUFhLHNCQUF1QixTQUFRLHFCQUFTO0lBQ2pEOzs7O09BSUc7SUFDSCxZQUFZLFlBQTBCLEVBQUUsU0FBb0I7UUFDeEQsS0FBSyxDQUFDLDJCQUEyQixTQUFTLGtCQUFrQixZQUFZLEVBQUUsQ0FBQyxDQUFDO0lBQ2hGLENBQUM7Q0FDSjtBQVRELHdEQVNDIn0=