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