All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.enodeframework.common.exception.DuplicateEventStreamException Maven / Gradle / Ivy

There is a newer version: 1.1.10
Show newest version
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.getVersion()));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy