UNPKG

@dolittle/sdk.projections

Version:

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

20 lines 1.32 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.UnknownCurrentStateType = void 0; const rudiments_1 = require("@dolittle/rudiments"); /** * Exception that gets thrown when trying to use a {@link ProjectionCurrentStateType} that is unknown. */ class UnknownCurrentStateType extends rudiments_1.Exception { /** * Initialises a new instance of the {@link UnknownCurrentStateType} class. * @param {ProjectionCurrentStateType} type - The current state type that is not known. */ constructor(type) { super(`Unknown current state type ${type}`); } } exports.UnknownCurrentStateType = UnknownCurrentStateType; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVW5rbm93bkN1cnJlbnRTdGF0ZVR5cGUuanMiLCJzb3VyY2VSb290IjoiLi4vIiwic291cmNlcyI6WyJTdG9yZS9Db252ZXJ0ZXJzL1Vua25vd25DdXJyZW50U3RhdGVUeXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSwrQ0FBK0M7QUFDL0MscUdBQXFHOzs7QUFFckcsbURBQWdEO0FBR2hEOztHQUVHO0FBQ0gsTUFBYSx1QkFBd0IsU0FBUSxxQkFBUztJQUNsRDs7O09BR0c7SUFDSCxZQUFZLElBQWdDO1FBQ3hDLEtBQUssQ0FBQyw4QkFBOEIsSUFBSSxFQUFFLENBQUMsQ0FBQztJQUNoRCxDQUFDO0NBQ0o7QUFSRCwwREFRQyJ9