@dolittle/sdk.projections
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
21 lines • 1.45 kB
JavaScript
;
// 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.InvalidCollectionName = void 0;
const rudiments_1 = require("@dolittle/rudiments");
/**
* The exception that gets thrown when trying to copy projection read models to an invalid MongoDB collection name.
*/
class InvalidCollectionName extends rudiments_1.Exception {
/**
* Initialises a new instance of the {@link InvalidCollectionName} class.
* @param {CollectionName} name - The collection name that is invalid.
* @param {string} reason - The reason why the collection name is invalid.
*/
constructor(name, reason) {
super(`The collection name '${name}', is invalid. Collection names ${reason}`);
}
}
exports.InvalidCollectionName = InvalidCollectionName;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSW52YWxpZENvbGxlY3Rpb25OYW1lLmpzIiwic291cmNlUm9vdCI6Ii4uLyIsInNvdXJjZXMiOlsiQ29waWVzL01vbmdvREIvSW52YWxpZENvbGxlY3Rpb25OYW1lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSwrQ0FBK0M7QUFDL0MscUdBQXFHOzs7QUFFckcsbURBQWdEO0FBSWhEOztHQUVHO0FBQ0gsTUFBYSxxQkFBc0IsU0FBUSxxQkFBUztJQUNoRDs7OztPQUlHO0lBQ0gsWUFBWSxJQUFvQixFQUFFLE1BQWM7UUFDNUMsS0FBSyxDQUFDLHdCQUF3QixJQUFJLG1DQUFtQyxNQUFNLEVBQUUsQ0FBQyxDQUFDO0lBQ25GLENBQUM7Q0FDSjtBQVRELHNEQVNDIn0=