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