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

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

package org.enodeframework.common.exception;

/**
 * @author [email protected]
 */
public class AggregateRootAlreadyExistException extends EnodeException {
    private final static String EXCEPTION_MESSAGE = "aggregate root [type=%s,id=%s] already exist in command context, cannot be added again.";

    public AggregateRootAlreadyExistException(String id, Class type) {
        super(String.format(EXCEPTION_MESSAGE, type.getName(), id));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy