UNPKG

@dolittle/sdk.projections

Version:

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

20 lines 1.31 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.UnknownMongoDBConversion = void 0; const rudiments_1 = require("@dolittle/rudiments"); /** * The exception that gets thrown when an unknown {@link Conversion} is specified. */ class UnknownMongoDBConversion extends rudiments_1.Exception { /** * Initialises a new instance of the {@link UnknownMongoDBConversion} class. * @param {Conversion} conversion - The conversion that was specified. */ constructor(conversion) { super(`The MongoDB field conversion type ${conversion} is unknown`); } } exports.UnknownMongoDBConversion = UnknownMongoDBConversion; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVW5rbm93bk1vbmdvREJDb252ZXJzaW9uLmpzIiwic291cmNlUm9vdCI6Ii4uLyIsInNvdXJjZXMiOlsiQ29waWVzL01vbmdvREIvVW5rbm93bk1vbmdvREJDb252ZXJzaW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSwrQ0FBK0M7QUFDL0MscUdBQXFHOzs7QUFFckcsbURBQWdEO0FBSWhEOztHQUVHO0FBQ0gsTUFBYSx3QkFBeUIsU0FBUSxxQkFBUztJQUNuRDs7O09BR0c7SUFDSCxZQUFZLFVBQXNCO1FBQzlCLEtBQUssQ0FBQyxxQ0FBcUMsVUFBVSxhQUFhLENBQUMsQ0FBQztJQUN4RSxDQUFDO0NBQ0o7QUFSRCw0REFRQyJ9