UNPKG

@dolittle/sdk.projections

Version:

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

20 lines 1.42 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.UnknownKeySelectorType = void 0; const rudiments_1 = require("@dolittle/rudiments"); /** * Exception that is thrown when trying to register a projection with an unkown key selector type. */ class UnknownKeySelectorType extends rudiments_1.Exception { /** * Initialises a new instance of the {@link UnknownKeySelectorType} class. * @param {KeySelector} selectorType - The key selector type that is not implemented. */ constructor(selectorType) { super(`The key selector type '${Object.getPrototypeOf(selectorType).constructor.name}' is not implemented`); } } exports.UnknownKeySelectorType = UnknownKeySelectorType; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVW5rbm93bktleVNlbGVjdG9yVHlwZS5qcyIsInNvdXJjZVJvb3QiOiIuLi8iLCJzb3VyY2VzIjpbIlVua25vd25LZXlTZWxlY3RvclR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLCtDQUErQztBQUMvQyxxR0FBcUc7OztBQUVyRyxtREFBZ0Q7QUFJaEQ7O0dBRUc7QUFDSCxNQUFhLHNCQUF1QixTQUFRLHFCQUFTO0lBQ2pEOzs7T0FHRztJQUNILFlBQVksWUFBeUI7UUFDakMsS0FBSyxDQUFDLDBCQUEwQixNQUFNLENBQUMsY0FBYyxDQUFDLFlBQVksQ0FBQyxDQUFDLFdBQVcsQ0FBQyxJQUFJLHNCQUFzQixDQUFDLENBQUM7SUFDaEgsQ0FBQztDQUNKO0FBUkQsd0RBUUMifQ==