UNPKG

@dolittle/sdk.projections

Version:

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

22 lines 1.6 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.FailedToGetProjectionState = void 0; const rudiments_1 = require("@dolittle/rudiments"); /** * The exception that gets thrown when no state is returned for a projection. */ class FailedToGetProjectionState extends rudiments_1.Exception { /** * Creates a new instance of the {@link FailedToGetProjectionState} class. * @param {ProjectionId} projection - The identifier of the projection that was retrieved. * @param {ScopeId} scope - The scope of the projection that was retrieved. * @param {Key} key - The key of the projection that was retrieved. */ constructor(projection, scope, key) { super(`Failed to get projection ${projection} in scope ${scope} with key ${key}. No state returned for projection.`); } } exports.FailedToGetProjectionState = FailedToGetProjectionState; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRmFpbGVkVG9HZXRQcm9qZWN0aW9uU3RhdGUuanMiLCJzb3VyY2VSb290IjoiLi4vIiwic291cmNlcyI6WyJTdG9yZS9GYWlsZWRUb0dldFByb2plY3Rpb25TdGF0ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsK0NBQStDO0FBQy9DLHFHQUFxRzs7O0FBRXJHLG1EQUFnRDtBQU9oRDs7R0FFRztBQUNILE1BQWEsMEJBQTJCLFNBQVEscUJBQVM7SUFDckQ7Ozs7O09BS0c7SUFDSCxZQUFZLFVBQXdCLEVBQUUsS0FBYyxFQUFFLEdBQVE7UUFDMUQsS0FBSyxDQUFDLDRCQUE0QixVQUFVLGFBQWEsS0FBSyxhQUFhLEdBQUcscUNBQXFDLENBQUMsQ0FBQztJQUN6SCxDQUFDO0NBQ0o7QUFWRCxnRUFVQyJ9