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

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

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

/**
 * @author [email protected]
 */
public class AggregateRootAlreadyExistException extends RuntimeException {
    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