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

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

package org.enodeframework.common.exception;

import org.enodeframework.domain.AggregateRoot;

public class AggregateRootReferenceChangedException extends EnodeException {

    private final AggregateRoot aggregateRoot;

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

    public AggregateRoot getAggregateRoot() {
        return aggregateRoot;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy