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

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

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

import java.io.Serializable;

/**
 * Exception that is thrown when an element should be in the model because it is
 * referenced from somewhere, but it can't be found.
 * 
 * @author b_muth
 *
 */
public class NoSuchElementInModel extends RuntimeException implements Serializable {
	private static final long serialVersionUID = -6636292150079241122L;

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

	private static String exceptionMessage(String elementName) {
		return "Element does not exist in model:" + elementName;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy