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

org.requirementsascode.exception.ElementAlreadyInModel Maven / Gradle / Ivy

There is a newer version: 2.0
Show newest version
package org.requirementsascode.exception;

/**
 * Exception that is thrown when somebody tries to create a new model element,
 * and a model element with the same name is already in the model.
 * 
 * @author b_muth
 *
 */
public class ElementAlreadyInModel extends RuntimeException{
	private static final long serialVersionUID = -510216736346192818L;

	public ElementAlreadyInModel(String elementName) {
		super(exceptionMessage(elementName));
	}

	private static String exceptionMessage(String elementName) {
		return "Element already exists in model: " + elementName;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy