UNPKG

@dolittle/sdk.artifacts

Version:

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

21 lines 1.69 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.CannotAccessValuesOfNestedMapWithMoreLevels = void 0; const rudiments_1 = require("@dolittle/rudiments"); const NestedMap_1 = require("./NestedMap"); /** * The exception that gets thrown when attempting to access the internal map of a {@link NestedMap} as a values map when it is not the final level. */ class CannotAccessValuesOfNestedMapWithMoreLevels extends rudiments_1.Exception { /** * Initialises a new instance of the {@link CannotAccessValuesOfNestedMapWithMoreLevels} class. * @param {number} depth - The depth at which the internal map was accessed as values. */ constructor(depth) { super(`The internal map of ${NestedMap_1.NestedMap.name} cannot be accessed as values when depth is ${depth}, only when depth is 1`); } } exports.CannotAccessValuesOfNestedMapWithMoreLevels = CannotAccessValuesOfNestedMapWithMoreLevels; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2Fubm90QWNjZXNzVmFsdWVzT2ZOZXN0ZWRNYXBXaXRoTW9yZUxldmVscy5qcyIsInNvdXJjZVJvb3QiOiIuLi8iLCJzb3VyY2VzIjpbIk1hcHBpbmdzL0Nhbm5vdEFjY2Vzc1ZhbHVlc09mTmVzdGVkTWFwV2l0aE1vcmVMZXZlbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLCtDQUErQztBQUMvQyxxR0FBcUc7OztBQUVyRyxtREFBZ0Q7QUFDaEQsMkNBQXdDO0FBRXhDOztHQUVHO0FBQ0gsTUFBYSwyQ0FBNEMsU0FBUSxxQkFBUztJQUN0RTs7O09BR0c7SUFDSCxZQUFZLEtBQWE7UUFDckIsS0FBSyxDQUFDLHVCQUF1QixxQkFBUyxDQUFDLElBQUksK0NBQStDLEtBQUssd0JBQXdCLENBQUMsQ0FBQztJQUM3SCxDQUFDO0NBQ0o7QUFSRCxrR0FRQyJ9