UNPKG

@dolittle/sdk.aggregates

Version:

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

17 lines (14 loc) 632 B
// Copyright (c) Dolittle. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. import { Exception } from '@dolittle/rudiments'; /** * The exception that gets thrown when an aggregate root identifier is not set and is expected. */ export class AggregateRootIdentifierNotSet extends 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.'); } }