UNPKG

@dolittle/sdk.common

Version:

Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.

21 lines 1.76 kB
"use strict"; // 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.CannotUnbindIdentifierFromProcessorBuilderThatIsNotBound = void 0; const rudiments_1 = require("@dolittle/rudiments"); /** * The exception that is thrown when attempting to unbind an identifier from a processor builder that it is not bound to. */ class CannotUnbindIdentifierFromProcessorBuilderThatIsNotBound extends rudiments_1.Exception { /** * Initialises a new instance of the {@link CannotUnbindIdentifierFromProcessorBuilderThatIsNotBound} class. * @param {AnyIdentifier} identifier - The identifier that was attempted to unbind. * @param {ProcessorBuilder} processorBuilder - The type that was attempted to unbind from. */ constructor(identifier, processorBuilder) { super(`Cannot unbind ${identifier} from ${processorBuilder}. It was not bound`); } } exports.CannotUnbindIdentifierFromProcessorBuilderThatIsNotBound = CannotUnbindIdentifierFromProcessorBuilderThatIsNotBound; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2Fubm90VW5iaW5kSWRlbnRpZmllckZyb21Qcm9jZXNzb3JCdWlsZGVyVGhhdElzTm90Qm91bmQuanMiLCJzb3VyY2VSb290IjoiLi4vIiwic291cmNlcyI6WyJNb2RlbC9DYW5ub3RVbmJpbmRJZGVudGlmaWVyRnJvbVByb2Nlc3NvckJ1aWxkZXJUaGF0SXNOb3RCb3VuZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsK0NBQStDO0FBQy9DLHFHQUFxRzs7O0FBRXJHLG1EQUFnRDtBQUtoRDs7R0FFRztBQUNILE1BQWEsd0RBQXlELFNBQVEscUJBQVM7SUFDbkY7Ozs7T0FJRztJQUNILFlBQVksVUFBeUIsRUFBRSxnQkFBa0M7UUFDckUsS0FBSyxDQUFDLGlCQUFpQixVQUFVLFNBQVMsZ0JBQWdCLG9CQUFvQixDQUFDLENBQUM7SUFDcEYsQ0FBQztDQUNKO0FBVEQsNEhBU0MifQ==