org.enodeframework.common.exception.DuplicateEventStreamException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of enode Show documentation
Show all versions of enode Show documentation
The enodeframework core implementation.
package org.enodeframework.common.exception;
import org.enodeframework.eventing.DomainEventStream;
/**
* @author [email protected]
*/
public class DuplicateEventStreamException extends RuntimeException {
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()));
}
}