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