org.enodeframework.common.exception.AggregateRootNotFoundException Maven / Gradle / Ivy
package org.enodeframework.common.exception;
/**
* @author [email protected]
*/
public class AggregateRootNotFoundException extends EnodeException {
private static final String EXCEPTION_MESSAGE = "aggregate root [type=%s,id=%s] not found.";
public AggregateRootNotFoundException() {
super();
}
public AggregateRootNotFoundException(String msg) {
super(msg);
}
public AggregateRootNotFoundException(String id, Class> type) {
super(String.format(EXCEPTION_MESSAGE, type.getName(), id));
}
public AggregateRootNotFoundException(Throwable cause) {
super(cause);
}
public AggregateRootNotFoundException(String msg, Throwable cause) {
super(msg, cause);
}
}