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

org.enodeframework.domain.AggregateRootReferenceChangedException Maven / Gradle / Ivy

There is a newer version: 1.1.10
Show newest version
package org.enodeframework.domain;

public class AggregateRootReferenceChangedException extends RuntimeException {

    private IAggregateRoot aggregateRoot;

    public AggregateRootReferenceChangedException(IAggregateRoot aggregateRoot) {
        super(String.format("Aggregate root [type=%s,id=%s] reference already changed.", aggregateRoot.getClass().getName(), aggregateRoot.getUniqueId()));
        this.aggregateRoot = aggregateRoot;
    }

    public IAggregateRoot getAggregateRoot() {
        return aggregateRoot;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy