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