@dolittle/sdk.artifacts
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
20 lines • 1.3 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.KeyNotAssociatedWithType = void 0;
const rudiments_1 = require("@dolittle/rudiments");
/**
* The exception that gets thrown when getting a type that is not associated with a key from a {@link TypeMap}.
*/
class KeyNotAssociatedWithType extends rudiments_1.Exception {
/**
* Initialises a new instance of the {@link KeyNotAssociatedWithType} class.
* @param {any} key - The key that is missing an association.
*/
constructor(key) {
super(`'${key}' does not have an type association.`);
}
}
exports.KeyNotAssociatedWithType = KeyNotAssociatedWithType;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiS2V5Tm90QXNzb2NpYXRlZFdpdGhUeXBlLmpzIiwic291cmNlUm9vdCI6Ii4uLyIsInNvdXJjZXMiOlsiTWFwcGluZ3MvS2V5Tm90QXNzb2NpYXRlZFdpdGhUeXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSwrQ0FBK0M7QUFDL0MscUdBQXFHOzs7QUFFckcsbURBQWdEO0FBSWhEOztHQUVHO0FBQ0gsTUFBYSx3QkFBeUIsU0FBUSxxQkFBUztJQUNuRDs7O09BR0c7SUFDSCxZQUFZLEdBQVE7UUFDaEIsS0FBSyxDQUFDLElBQUksR0FBRyxzQ0FBc0MsQ0FBQyxDQUFDO0lBQ3pELENBQUM7Q0FDSjtBQVJELDREQVFDIn0=