@dolittle/sdk.artifacts
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
18 lines (15 loc) • 720 B
text/typescript
// Copyright (c) Dolittle. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
import { Exception } from '@dolittle/rudiments';
import { NestedMap } from './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.
*/
export class CannotAccessMapsOfNestedMapWithNoMoreLevels extends Exception {
/**
* Initialises a new instance of the {@link CannotAccessMapsOfNestedMapWithNoMoreLevels} class.
*/
constructor() {
super(`The internal map of ${NestedMap.name} cannot be accessed as nested map when depth is 1`);
}
}