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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy