// 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.'); } }