AggregateExistsException constructor

AggregateExistsException(
  1. Type type,
  2. AggregateId id, [
  3. Object? cause
])

Implementation

AggregateExistsException(
  Type type,
  AggregateId id, [
  this.cause,
]) : super(
        "Aggregate $type '$id' exists already "
        'in stream ${StreamName.fromId(type, id)}',
      );