@dolittle/sdk.artifacts
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
20 lines • 1.53 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.CannotAccessMapsOfNestedMapWithNoMoreLevels = 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 nested map when it is the final level.
*/
class CannotAccessMapsOfNestedMapWithNoMoreLevels extends rudiments_1.Exception {
/**
* Initialises a new instance of the {@link CannotAccessMapsOfNestedMapWithNoMoreLevels} class.
*/
constructor() {
super(`The internal map of ${NestedMap_1.NestedMap.name} cannot be accessed as nested map when depth is 1`);
}
}
exports.CannotAccessMapsOfNestedMapWithNoMoreLevels = CannotAccessMapsOfNestedMapWithNoMoreLevels;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2Fubm90QWNjZXNzTWFwc09mTmVzdGVkTWFwV2l0aE5vTW9yZUxldmVscy5qcyIsInNvdXJjZVJvb3QiOiIuLi8iLCJzb3VyY2VzIjpbIk1hcHBpbmdzL0Nhbm5vdEFjY2Vzc01hcHNPZk5lc3RlZE1hcFdpdGhOb01vcmVMZXZlbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLCtDQUErQztBQUMvQyxxR0FBcUc7OztBQUVyRyxtREFBZ0Q7QUFDaEQsMkNBQXdDO0FBRXhDOztHQUVHO0FBQ0gsTUFBYSwyQ0FBNEMsU0FBUSxxQkFBUztJQUN0RTs7T0FFRztJQUNIO1FBQ0ksS0FBSyxDQUFDLHVCQUF1QixxQkFBUyxDQUFDLElBQUksbURBQW1ELENBQUMsQ0FBQztJQUNwRyxDQUFDO0NBQ0o7QUFQRCxrR0FPQyJ9