UNPKG

@dolittle/sdk.projections

Version:

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

22 lines 1.66 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.ReceivedDuplicateProjectionKeys = void 0; const rudiments_1 = require("@dolittle/rudiments"); /** * The exception that gets thrown when multiple projection states with the same key is received from the Runtime when getting all states. */ class ReceivedDuplicateProjectionKeys extends rudiments_1.Exception { /** * Initialises a new instance of the {@link ReceivedDuplicateProjectionKeys} class. * @param {ProjectionId} projection - The projection identifier. * @param {ScopeId} scope - The scope of the projection. * @param {Key} key - The key that was duplicated. */ constructor(projection, scope, key) { super(`Received multiple states from the Runtime with the key ${key} for projection ${projection} in scope ${scope} when getting all.`); } } exports.ReceivedDuplicateProjectionKeys = ReceivedDuplicateProjectionKeys; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmVjZWl2ZWREdXBsaWNhdGVQcm9qZWN0aW9uS2V5cy5qcyIsInNvdXJjZVJvb3QiOiIuLi8iLCJzb3VyY2VzIjpbIlN0b3JlL1JlY2VpdmVkRHVwbGljYXRlUHJvamVjdGlvbktleXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLCtDQUErQztBQUMvQyxxR0FBcUc7OztBQUVyRyxtREFBZ0Q7QUFNaEQ7O0dBRUc7QUFDSCxNQUFhLCtCQUFnQyxTQUFRLHFCQUFTO0lBQzFEOzs7OztPQUtHO0lBQ0gsWUFBWSxVQUF3QixFQUFFLEtBQWMsRUFBRSxHQUFRO1FBQzFELEtBQUssQ0FBQywwREFBMEQsR0FBRyxtQkFBbUIsVUFBVSxhQUFhLEtBQUssb0JBQW9CLENBQUMsQ0FBQztJQUM1SSxDQUFDO0NBQ0o7QUFWRCwwRUFVQyJ9