We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59e3c28 commit 984cac9Copy full SHA for 984cac9
lib/core/src/domain-events/domain-event.ts
@@ -57,10 +57,10 @@ export function DomainEvent(
57
Decorator.setMetadata(DOMAIN_EVENT_METADATA, metadata, this);
58
59
if (requireAggregateId && !AggregateId.hasId(this))
60
- throw new IllegalStateException(`TODO: Description`);
+ throw new IllegalStateException('AggregateId is required.');
61
62
if (requireEntityId && !EntityId.hasId(this))
63
+ throw new IllegalStateException('EntityId is required.');
64
}
65
};
66
} as ClassDecorator;
0 commit comments