@dolittle/sdk.aggregates
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
19 lines • 1.27 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.MissingAggregateRootDecoratorFor = void 0;
/**
* Exception that is thrown aggregate root decorator is not found for a type.
*/
class MissingAggregateRootDecoratorFor extends Error {
/**
* Initialises a new instance of the {@link MissingAggregateRootDecoratorFor} class.
* @param {Constructor<any>} type - The type that is missing the decorator.
*/
constructor(type) {
super(`Missing aggregate root decorator for type '${type.name}'`);
}
}
exports.MissingAggregateRootDecoratorFor = MissingAggregateRootDecoratorFor;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlzc2luZ0FnZ3JlZ2F0ZVJvb3REZWNvcmF0b3JGb3IuanMiLCJzb3VyY2VSb290IjoiLi4vIiwic291cmNlcyI6WyJNaXNzaW5nQWdncmVnYXRlUm9vdERlY29yYXRvckZvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsK0NBQStDO0FBQy9DLHFHQUFxRzs7O0FBSXJHOztHQUVHO0FBQ0gsTUFBYSxnQ0FBaUMsU0FBUSxLQUFLO0lBQ3ZEOzs7T0FHRztJQUNILFlBQVksSUFBc0I7UUFDOUIsS0FBSyxDQUFDLDhDQUE4QyxJQUFJLENBQUMsSUFBSSxHQUFHLENBQUMsQ0FBQztJQUN0RSxDQUFDO0NBQ0o7QUFSRCw0RUFRQyJ9