@dolittle/sdk.aggregates
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
19 lines • 1.16 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.EventTypesNotSet = void 0;
const rudiments_1 = require("@dolittle/rudiments");
/**
* The exception that gets thrown when a event types is not set and is expected.
*/
class EventTypesNotSet extends rudiments_1.Exception {
/**
* Initialises a new instance of the {@link EventTypesNotSet} class.
*/
constructor() {
super('Event types is not set on the Aggregate Root. Aggregate Roots must be constructed through the Client.');
}
}
exports.EventTypesNotSet = EventTypesNotSet;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXZlbnRUeXBlc05vdFNldC5qcyIsInNvdXJjZVJvb3QiOiIuLi8iLCJzb3VyY2VzIjpbIkV2ZW50VHlwZXNOb3RTZXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLCtDQUErQztBQUMvQyxxR0FBcUc7OztBQUVyRyxtREFBZ0Q7QUFFaEQ7O0dBRUc7QUFDSCxNQUFhLGdCQUFpQixTQUFRLHFCQUFTO0lBQzNDOztPQUVHO0lBQ0g7UUFDSSxLQUFLLENBQUMsdUdBQXVHLENBQUMsQ0FBQztJQUNuSCxDQUFDO0NBQ0o7QUFQRCw0Q0FPQyJ9