org.enodeframework.common.exception.DuplicateEventStreamException Maven / Gradle / Ivy
package org.enodeframework.common.exception;
import org.enodeframework.eventing.DomainEventStream;
/**
* @author [email protected]
*/
public class DuplicateEventStreamException extends EnodeException {
public DuplicateEventStreamException(DomainEventStream domainEventStream) {
super(String.format("Aggregate root [type=%s,id=%s] event stream already exist in the EventCommittingContextMailBox, eventStreamId: %s",
domainEventStream.getAggregateRootTypeName(), domainEventStream.getAggregateRootId(), domainEventStream.getId()));
}
}