Skip to content

Commit 984cac9

Browse files
committed
fix(@ddd-framework/core): added details to exceptions thrown in domain events module
1 parent 59e3c28 commit 984cac9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/core/src/domain-events/domain-event.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ export function DomainEvent(
5757
Decorator.setMetadata(DOMAIN_EVENT_METADATA, metadata, this);
5858

5959
if (requireAggregateId && !AggregateId.hasId(this))
60-
throw new IllegalStateException(`TODO: Description`);
60+
throw new IllegalStateException('AggregateId is required.');
6161

6262
if (requireEntityId && !EntityId.hasId(this))
63-
throw new IllegalStateException(`TODO: Description`);
63+
throw new IllegalStateException('EntityId is required.');
6464
}
6565
};
6666
} as ClassDecorator;

0 commit comments

Comments
 (0)