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

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()));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy