@dolittle/sdk.common
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
21 lines • 1.63 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.CannotUnbindIdentifierFromTypeThatIsNotBound = void 0;
const rudiments_1 = require("@dolittle/rudiments");
/**
* The exception that is thrown when attempting to unbind an identifier from a type that it is not bound to.
*/
class CannotUnbindIdentifierFromTypeThatIsNotBound extends rudiments_1.Exception {
/**
* Initialises a new instance of the {@link CannotUnbindIdentifierFromTypeThatIsNotBound} class.
* @param {AnyIdentifier} identifier - The identifier that was attempted to unbind.
* @param {Constructor} type - The type that was attempted to unbind from.
*/
constructor(identifier, type) {
super(`Cannot unbind ${identifier} from ${type.name}. It was not bound`);
}
}
exports.CannotUnbindIdentifierFromTypeThatIsNotBound = CannotUnbindIdentifierFromTypeThatIsNotBound;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2Fubm90VW5iaW5kSWRlbnRpZmllckZyb21UeXBlVGhhdElzTm90Qm91bmQuanMiLCJzb3VyY2VSb290IjoiLi4vIiwic291cmNlcyI6WyJNb2RlbC9DYW5ub3RVbmJpbmRJZGVudGlmaWVyRnJvbVR5cGVUaGF0SXNOb3RCb3VuZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsK0NBQStDO0FBQy9DLHFHQUFxRzs7O0FBRXJHLG1EQUFnRDtBQUtoRDs7R0FFRztBQUNILE1BQWEsNENBQTZDLFNBQVEscUJBQVM7SUFDdkU7Ozs7T0FJRztJQUNILFlBQVksVUFBeUIsRUFBRSxJQUFzQjtRQUN6RCxLQUFLLENBQUMsaUJBQWlCLFVBQVUsU0FBUyxJQUFJLENBQUMsSUFBSSxvQkFBb0IsQ0FBQyxDQUFDO0lBQzdFLENBQUM7Q0FDSjtBQVRELG9HQVNDIn0=