@dolittle/sdk.artifacts
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
22 lines • 1.69 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.IncorrectNumberOfPrimitiveKeysProvided = void 0;
const rudiments_1 = require("@dolittle/rudiments");
const NestedMap_1 = require("./NestedMap");
/**
* The exception that gets thrown when using a {@link NestedMap} with an incorrect number of primitive keys.
*/
class IncorrectNumberOfPrimitiveKeysProvided extends rudiments_1.Exception {
/**
* Initialises a new instance of the {@link IncorrectNumberOfPrimitiveKeysProvided} class.
* @param {number} numberOfKeys - The number of primitive keys provided.
* @param {number} depth - The depth of the {@link NestedMap}.
*/
constructor(numberOfKeys, depth) {
super(`Incorrect number of primitive keys provided to ${NestedMap_1.NestedMap.name}. Got ${numberOfKeys}, expected ${depth}`);
}
}
exports.IncorrectNumberOfPrimitiveKeysProvided = IncorrectNumberOfPrimitiveKeysProvided;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSW5jb3JyZWN0TnVtYmVyT2ZQcmltaXRpdmVLZXlzUHJvdmlkZWQuanMiLCJzb3VyY2VSb290IjoiLi4vIiwic291cmNlcyI6WyJNYXBwaW5ncy9JbmNvcnJlY3ROdW1iZXJPZlByaW1pdGl2ZUtleXNQcm92aWRlZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsK0NBQStDO0FBQy9DLHFHQUFxRzs7O0FBRXJHLG1EQUFnRDtBQUNoRCwyQ0FBd0M7QUFFeEM7O0dBRUc7QUFDSCxNQUFhLHNDQUF1QyxTQUFRLHFCQUFTO0lBQ2pFOzs7O09BSUc7SUFDSCxZQUFZLFlBQW9CLEVBQUUsS0FBYTtRQUMzQyxLQUFLLENBQUMsa0RBQWtELHFCQUFTLENBQUMsSUFBSSxTQUFTLFlBQVksY0FBYyxLQUFLLEVBQUUsQ0FBQyxDQUFDO0lBQ3RILENBQUM7Q0FDSjtBQVRELHdGQVNDIn0=