org.enodeframework.common.exception.AggregateRootAlreadyExistException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of enode Show documentation
Show all versions of enode Show documentation
The enodeframework core implementation.
package org.enodeframework.common.exception;
/**
* @author [email protected]
*/
public class AggregateRootAlreadyExistException extends RuntimeException {
private final static String EXCEPTIONMESSAGE = "Aggregate root [type=%s,id=%s] already exist in command context, cannot be added again.";
public AggregateRootAlreadyExistException(String id, Class> type) {
super(String.format(EXCEPTIONMESSAGE, type.getName(), id));
}
}